Skip to content
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

Conversation

tasawernawaz
Copy link
Contributor

photo_id_key is required so dummy value is added when AUTOMATIC_VERIFY_STUDENT_IDENTITY_FOR_TESTING flag is True.

ECOM-2547

@awais786 @afeef @zubair-arbi @ahsan-ul-haq

@tasawernawaz tasawernawaz force-pushed the tasawer/story/ecom-2547-set-photo-id-for-initial-verfication branch from 426e885 to 712fd17 Compare October 28, 2015 08:15
if settings.FEATURES.get('AUTOMATIC_VERIFY_STUDENT_IDENTITY_FOR_TESTING'):
self.photo_id_key = 'abc'
Copy link
Contributor

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'

@tasawernawaz tasawernawaz force-pushed the tasawer/story/ecom-2547-set-photo-id-for-initial-verfication branch from 712fd17 to 2a710b2 Compare October 28, 2015 08:59
attempt.mark_ready()
attempt.submit()

assert_equals(attempt.photo_id_key, "abc")
Copy link
Contributor

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.

@tasawernawaz tasawernawaz force-pushed the tasawer/story/ecom-2547-set-photo-id-for-initial-verfication branch from 55ae59e to 565a160 Compare October 28, 2015 10:53
@@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: initial verification

@tasawernawaz tasawernawaz force-pushed the tasawer/story/ecom-2547-set-photo-id-for-initial-verfication branch from 565a160 to 982c9a2 Compare October 28, 2015 10:59
@zubair-arbi
Copy link
Contributor

lgtm 👍

@tasawernawaz
Copy link
Contributor Author

@edx/ecommerce Please review this.

@tasawernawaz
Copy link
Contributor Author

jenkins run bokchoy

1 similar comment
@tasawernawaz
Copy link
Contributor Author

jenkins run bokchoy

@tasawernawaz
Copy link
Contributor Author

@clintonb Please review this.

@clintonb
Copy link
Contributor

👍

tasawernawaz pushed a commit that referenced this pull request Oct 28, 2015
…id-for-initial-verfication

Added photo_id_key while AUTOMATIC_VERIFY_STUDENT_IDENTITY_FOR_TESTING is True
@tasawernawaz tasawernawaz merged commit b1955cd into master Oct 28, 2015
@benpatterson benpatterson requested a deployment to ci October 28, 2015 17:29 Abandoned
@benpatterson benpatterson requested a deployment to ci October 28, 2015 17:32 Abandoned
@benpatterson benpatterson requested a deployment to ci October 28, 2015 18:11 Abandoned
@benpatterson benpatterson requested a deployment to ci October 28, 2015 18:14 Abandoned
@benpatterson benpatterson deleted the tasawer/story/ecom-2547-set-photo-id-for-initial-verfication branch August 2, 2016 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants