This commit is contained in:
2024-02-23 21:08:10 +00:00
parent 81fe923fb3
commit 662b75e224
+3 -3
View File
@@ -52,7 +52,7 @@ class TestACAuthenticator(TestCase):
authenticator = ACAuthenticator(AC_LOGIN_BASE_URL)
response = authenticator.login_with_check(email, password)
self.assertEquals(200, response.status_code)
self.assertEqual(200, response.status_code)
res_data = response.json()
self.assertEqual(1, res_data['is_ok'])
user = res_data["user"]
@@ -71,7 +71,7 @@ class TestACAuthenticator(TestCase):
email = "collab@example.com"
password = "VeryS3cret!"
authenticator = ACAuthenticator(AC_LOGIN_BASE_URL)
response = authenticator.login_with_check(email, password)
authenticator.login_with_check(email, password)
def test_login_failed_not_ok(self):
with self.assertRaises(Exception) as exc:
@@ -82,4 +82,4 @@ class TestACAuthenticator(TestCase):
email = "collab@example.com"
password = "VeryS3cret!"
authenticator = ACAuthenticator(AC_LOGIN_BASE_URL)
response = authenticator.login_with_check(email, password)
authenticator.login_with_check(email, password)