mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-07 21:44:52 +03:00
Update test_views.py
This commit is contained in:
parent
940390457f
commit
c49719fcad
|
@ -103,7 +103,7 @@ class TestUserDetailView:
|
||||||
response = user_detail_view(request, username=user.username)
|
response = user_detail_view(request, username=user.username)
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
assert response.status_code == HTTPStatus.OK
|
assert response.status_code == HTTPStatus.FORBIDDEN
|
||||||
|
|
||||||
def test_not_authenticated(self, user: User, rf: RequestFactory):
|
def test_not_authenticated(self, user: User, rf: RequestFactory):
|
||||||
request = rf.get("/fake-url/")
|
request = rf.get("/fake-url/")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user