diff --git a/apps/account/tests/tests_common.py b/apps/account/tests/tests_common.py index c92fe89e..6a9a1fdd 100644 --- a/apps/account/tests/tests_common.py +++ b/apps/account/tests/tests_common.py @@ -41,5 +41,19 @@ class AccountUserTests(APITestCase): self.assertEqual(response.status_code, status.HTTP_200_OK) +class AccountChangePasswordTests(APITestCase): + url = '/api/web/account/change-password/' + + def setUp(self): + self.data = get_tokens_for_user() + + def test_change_password(self): + data = { + "password": "new password" + } + + response = self.client.patch(self.url, data=data, format='json') + self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) +