Feat: add unhappy path test for post student
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user