Fix mypy error

This commit is contained in:
Bruno Alla 2021-01-25 22:13:19 +00:00
parent 37e0d6ae04
commit d12d01d325

View File

@ -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