Mirror test layout, domcontentloaded waits, backup DB writes outside threads

This commit is contained in:
2026-10-05 09:41:22 +02:00
parent 8f6c5be314
commit 622795c9a0
46 changed files with 296 additions and 241 deletions
+20
View File
@@ -0,0 +1,20 @@
# retoor <retoor@molodetz.nl>
import pytest
from molodetz.utils.request_meta import safe_next
@pytest.mark.parametrize(
"value,expected",
[
("/admin", "/admin"),
("/rol?page=2", "/rol?page=2"),
("https://evil.example/", "/"),
("//evil.example/", "/"),
("/\\evil.example", "/"),
("", "/"),
(None, "/"),
],
)
def test_safe_next(value, expected):
assert safe_next(value) == expected