Skip to content

Commit 9f6e281

Browse files
committed
fix: tests for users
1 parent 7f7fa8d commit 9f6e281

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_users_crud.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ def test_update_requires_auth_redirects(client, users):
7171
url = f"/users/{users['alice'].pk}/update/"
7272
r = client.get(url)
7373
assert r.status_code in (302, 301)
74-
# проект редиректит на список пользователей, а не на логин
75-
assert r.url == "/users/"
74+
assert r.url == f"/login/?next={url}"
7675

7776

7877
@pytest.mark.django_db

0 commit comments

Comments
 (0)