Update test_views.py

This commit is contained in:
Fuzzwah 2024-07-27 15:58:26 +10:00 committed by GitHub
parent 940390457f
commit c49719fcad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -103,7 +103,7 @@ class TestUserDetailView:
response = user_detail_view(request, username=user.username)
{%- endif %}
assert response.status_code == HTTPStatus.OK
assert response.status_code == HTTPStatus.FORBIDDEN
def test_not_authenticated(self, user: User, rf: RequestFactory):
request = rf.get("/fake-url/")