tests(registry): add registry tests

This commit is contained in:
2026-04-18 16:13:27 +02:00
parent 98a1a330c5
commit 98e6309256
3 changed files with 160 additions and 10 deletions
+2 -5
View File
@@ -4,15 +4,12 @@ import dataclasses
@dataclasses.dataclass
class Page:
path: str
with_index: bool
with_index: bool = False
host: str | None = None
token_hash: str | None = None
def get_url_path(self) -> str:
return f"/{self.path}/"
def __repr__(self) -> str:
out = self.get_url_path()
out = f"/{self.path}/"
if self.host is not None:
out += f" [{self.host}]"
if not self.with_index: