canaille-globuzma/tests/app/test_apputils.py
Éloi Rivard 77667c6f52
refactor: all domains used in the unit test suite are now .test
this ensures they will never be valid, and will never generate real
world requests
2024-11-20 23:30:48 +01:00

9 lines
321 B
Python

from canaille.app import validate_uri
def test_validate_uri():
assert validate_uri("https://canaille.test")
assert validate_uri("scheme.with.dots://canaille.test")
assert validate_uri("scheme.with.dots://localhost")
assert validate_uri("scheme.with.dots://oauth")
assert not validate_uri("invalid")