mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-12-03 15:04:09 +03:00
Fix mypy error
This commit is contained in:
parent
37e0d6ae04
commit
d12d01d325
|
@ -34,7 +34,7 @@ class TestUserAdmin:
|
|||
assert User.objects.filter(username="test").exists()
|
||||
|
||||
def test_view_user(self, admin_client):
|
||||
user = User.objects.first()
|
||||
user = User.objects.get(username="admin")
|
||||
url = reverse("admin:users_user_change", kwargs={"object_id": user.pk})
|
||||
response = admin_client.get(url)
|
||||
assert response.status_code == 200
|
||||
|
|
Loading…
Reference in New Issue
Block a user