From 01292766f3b11476d36669ca6f77132b006d77bc Mon Sep 17 00:00:00 2001 From: Valentin Rigal <rigal@teklia.com> Date: Tue, 28 May 2024 16:09:49 +0200 Subject: [PATCH] Add test case --- arkindex/users/tests/test_registration.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arkindex/users/tests/test_registration.py b/arkindex/users/tests/test_registration.py index 7376532c48..b934db8ef8 100644 --- a/arkindex/users/tests/test_registration.py +++ b/arkindex/users/tests/test_registration.py @@ -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) -- GitLab