Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementing test cases to GET and DELETE user models at the api/users endpoint #335

Open
wants to merge 9 commits into
base: dev
Choose a base branch
from
1 change: 1 addition & 0 deletions src/chigame/api/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ def test_user_get(self):

def test_user_delete(self):
user = UserFactory()
self.assertEqual(User.objects.count(), 1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me!


url = reverse("api-user-detail", args=[user.id])
response = self.client.delete(url, format="json")
Expand Down