-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added photo_id_key while AUTOMATIC_VERIFY_STUDENT_IDENTITY_FOR_TESTING is True #10393
Added photo_id_key while AUTOMATIC_VERIFY_STUDENT_IDENTITY_FOR_TESTING is True #10393
Conversation
426e885
to
712fd17
Compare
if settings.FEATURES.get('AUTOMATIC_VERIFY_STUDENT_IDENTITY_FOR_TESTING'): | ||
self.photo_id_key = 'abc' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: self.photo_id_key = 'fake-photo-id-key'
712fd17
to
2a710b2
Compare
attempt.mark_ready() | ||
attempt.submit() | ||
|
||
assert_equals(attempt.photo_id_key, "abc") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use self.assertEqual
for comparing values.
55ae59e
to
565a160
Compare
@@ -647,6 +647,9 @@ def upload_photo_id_image(self, img_data): | |||
# verification functionality. If you do want to work on it, you have to | |||
# explicitly enable these in your private settings. | |||
if settings.FEATURES.get('AUTOMATIC_VERIFY_STUDENT_IDENTITY_FOR_TESTING'): | |||
# fake photo id key is set only for initial reverification |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: initial verification
…G is True ECOM-2547
565a160
to
982c9a2
Compare
lgtm 👍 |
@edx/ecommerce Please review this. |
jenkins run bokchoy |
1 similar comment
jenkins run bokchoy |
@clintonb Please review this. |
👍 |
…id-for-initial-verfication Added photo_id_key while AUTOMATIC_VERIFY_STUDENT_IDENTITY_FOR_TESTING is True
photo_id_key
is required so dummy value is added whenAUTOMATIC_VERIFY_STUDENT_IDENTITY_FOR_TESTING
flag isTrue
.ECOM-2547
@awais786 @afeef @zubair-arbi @ahsan-ul-haq