Skip to content

Commit 7cfb380

Browse files
committed
test: update Altcha protection test fixtures
Signed-off-by: Keshav Priyadarshi <git@keshav.space>
1 parent ce6ec99 commit 7cfb380

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

vulnerabilities/tests/test_altcha_protection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def test_protected_url_redirects_without_session(self, client):
2222
response = client.get("/packages/search/")
2323

2424
assert response.status_code == 302
25-
assert response.url == "/altcha/"
25+
assert response.url == "/altcha/?next=%2Fpackages%2Fsearch%2F"
2626

2727
def test_unprotected_url_is_accessible(self, client):
2828
response = client.get("/")
@@ -46,7 +46,7 @@ def test_expired_session_redirects(self, client):
4646
response = client.get("/packages/search/")
4747

4848
assert response.status_code == 302
49-
assert response.url == "/altcha/"
49+
assert response.url == "/altcha/?next=%2Fpackages%2Fsearch%2F"
5050

5151
def test_expired_session_is_removed(self, client):
5252
session = client.session

0 commit comments

Comments
 (0)