From 5983d5dd42ca8f0f6e1347d04ccbcc4a28482a92 Mon Sep 17 00:00:00 2001 From: Giovanni Cimolin da Silva Date: Wed, 11 Dec 2019 13:54:34 -0300 Subject: [PATCH] Skip test on python 3 --- .../commands/tests/test_send_verification_expiry_email.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lms/djangoapps/verify_student/management/commands/tests/test_send_verification_expiry_email.py b/lms/djangoapps/verify_student/management/commands/tests/test_send_verification_expiry_email.py index e1c39038c4..a43e91859f 100644 --- a/lms/djangoapps/verify_student/management/commands/tests/test_send_verification_expiry_email.py +++ b/lms/djangoapps/verify_student/management/commands/tests/test_send_verification_expiry_email.py @@ -19,7 +19,7 @@ from testfixtures import LogCapture from xmodule.modulestore.tests.django_utils import ModuleStoreTestCase from xmodule.modulestore.tests.factories import CourseFactory -from common.test.utils import MockS3Mixin +from common.test.utils import MockS3Mixin, py2_only from lms.djangoapps.verify_student.models import SoftwareSecurePhotoVerification from lms.djangoapps.verify_student.tests.test_models import FAKE_SETTINGS, mock_software_secure_post @@ -206,11 +206,14 @@ class TestSendVerificationExpiryEmail(MockS3Mixin, ModuleStoreTestCase): self.assertEqual(len(mail.outbox), 1) self.assertIsNone(attempt.expiry_email_date) + @py2_only def test_user_enrolled_in_verified_course(self): """ Test that if the user is enrolled in verified track, then after sending the default no of emails, `expiry_email_date` is updated to now() so that it's filtered in the future to send - email again + email again. + + Does not work on python 3 with the latest mongo driver version due to class inheritance issues. """ user = UserFactory.create() course = CourseFactory()