tests(registry): add registry tests
This commit is contained in:
+2
-5
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user