projects/repr

This commit is contained in:
Marc Beninca 2024-09-15 01:19:51 +02:00
parent d3d09445a0
commit 725bf8b981
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 5 additions and 1 deletions

View file

@ -46,7 +46,7 @@ class Project:
self.url = add_url_path(projects.url, self.name) self.url = add_url_path(projects.url, self.name)
def __repr__(self) -> str: def __repr__(self) -> str:
"""List branch, name, root & url.""" """Represent project."""
return f"Project(projects={self.projects!r})" return f"Project(projects={self.projects!r})"
def __str__(self) -> str: def __str__(self) -> str:

View file

@ -34,6 +34,10 @@ class Projects:
if value := self.environment.get(variable, None): if value := self.environment.get(variable, None):
self.url = add_url_path(value, self.group) self.url = add_url_path(value, self.group)
def __repr__(self) -> str:
"""Represent projects."""
return "Projects()"
def __str__(self) -> str: def __str__(self) -> str:
"""List group, name & url.""" """List group, name & url."""
return f"""\ return f"""\