PLAT-1801 Preserve new user login behavior under Django 1.10+
This commit is contained in:
@@ -409,7 +409,6 @@ class AccountCreationActivationAndPasswordChangeTest(TestCase):
|
||||
activate_account(u'invalid')
|
||||
|
||||
@skip_unless_lms
|
||||
@pytest.mark.django111_expected_failure
|
||||
def test_request_password_change(self):
|
||||
# Create and activate an account
|
||||
activation_key = create_account(self.USERNAME, self.PASSWORD, self.EMAIL)
|
||||
@@ -428,7 +427,6 @@ class AccountCreationActivationAndPasswordChangeTest(TestCase):
|
||||
self.assertIsNot(result, None)
|
||||
|
||||
@skip_unless_lms
|
||||
@pytest.mark.django111_expected_failure
|
||||
def test_request_password_change_invalid_user(self):
|
||||
with self.assertRaises(UserNotFound):
|
||||
request_password_change(self.EMAIL, self.IS_SECURE)
|
||||
|
||||
@@ -640,7 +640,7 @@ class TestAccountsAPI(CacheIsolationTestCase, UserAPITestCase):
|
||||
self.assertEqual(1, len(pending_change))
|
||||
activation_key = pending_change[0].activation_key
|
||||
confirm_change_url = reverse(
|
||||
"student.views.confirm_email_change", kwargs={'key': activation_key}
|
||||
"confirm_email_change", kwargs={'key': activation_key}
|
||||
)
|
||||
response = self.client.post(confirm_change_url)
|
||||
self.assertEqual(200, response.status_code)
|
||||
|
||||
Reference in New Issue
Block a user