Feat: add unhappy path test for post student

This commit is contained in:
2022-12-29 07:37:49 +01:00
parent febe686688
commit c7eb8e44d2
3 changed files with 40 additions and 8 deletions

View File

@@ -52,7 +52,7 @@ class TribeSQLiteRepository(AbstractRepository):
if row:
return Tribe(*row)
raise ValueError(f"The tribe {name} does not exists")
raise TribeRepositoryError(f"The tribe {name} does not exists")
def list(self) -> list[Tribe]:
cursor = self.conn.cursor()