Skip to content
Snippets Groups Projects
Commit 01292766 authored by Valentin Rigal's avatar Valentin Rigal Committed by Erwan Rouchet
Browse files

Add test case

parent 975b3f74
No related branches found
No related tags found
1 merge request!2326Update session data when updating the password with UpdateUser
This commit is part of merge request !2326. Comments created here will be created in the context of that merge request.
......@@ -57,6 +57,12 @@ class TestRegistration(FixtureAPITestCase):
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.user.refresh_from_db()
self.assertTrue(self.user.check_password("N€wP4$5w0Rd"))
# Ensure client session is still valid
response = self.client.get(
reverse("api:user-retrieve"),
format="json",
)
self.assertEqual(response.status_code, status.HTTP_200_OK)
def test_update_display_name(self):
self.client.force_login(self.user)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment