mirror of
https://github.com/Hopiu/cookiecutter-django.git
synced 2026-05-11 06:03:09 +00:00
Fix mypy error
This commit is contained in:
parent
37e0d6ae04
commit
d12d01d325
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue