user can update notify

This commit is contained in:
Diego Calvo
2021-03-12 15:03:50 +01:00
parent 760927c024
commit 4a737d4287
2 changed files with 5 additions and 2 deletions

View File

@@ -169,7 +169,6 @@ class CustomUserViewSetTest(APITestCase):
data = {
"email": "new_email@mail.com",
"full_name": "New Full Name",
'provider': 'PROVIDER',
'notify': True,
}
@@ -183,6 +182,10 @@ class CustomUserViewSetTest(APITestCase):
# Assert forbidden code
self.assertEqual(response.status_code, status.HTTP_200_OK)
# Assert instance has been modified
for key in data:
self.assertEqual(data[key], response.data[key])
# admin user
def test_admin_user_can_create_instance(self):
"""Admin user can create new instance