fix: server test

This commit is contained in:
sokumon 2025-11-09 16:32:05 +05:30
parent c918601b0a
commit 526ae1608f

View file

@ -504,9 +504,9 @@ class TestResponse(FrappeAPITestCase):
expected_redirects = { expected_redirects = {
"/app/user": "http://localhost/app/user", "/app/user": "http://localhost/app/user",
"/app/user?enabled=1": "http://localhost/app/user?enabled=1", "/app/user?enabled=1": "http://localhost/app/user?enabled=1",
"http://example.com": "http://localhost/app", # No external redirect "http://example.com": "http://localhost/desk", # No external redirect
"https://google.com": "http://localhost/app", "https://google.com": "http://localhost/desk",
"http://localhost:8000": "http://localhost/app", "http://localhost:8000": "http://localhost/desk",
"http://localhost/app": "http://localhost/app", "http://localhost/app": "http://localhost/app",
"////example.com": "http://localhost//example.com", # malicious redirect attempt "////example.com": "http://localhost//example.com", # malicious redirect attempt
} }