fix all the tests

This commit is contained in:
Waylon Walker 2023-06-21 10:29:50 -05:00
parent 7db07c7d35
commit a7e6f2c4e5
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4
9 changed files with 128 additions and 137 deletions

View file

@ -33,7 +33,6 @@ def hero():
@hero_app.command()
@engorgio(typer=True)
def get(
hero_id: Optional[int] = typer.Argument(default=None),
) -> Union[Hero, List[Hero]]:
@ -44,16 +43,11 @@ def get(
@hero_app.command()
@engorgio(typer=True)
def list(
where: Optional[str] = None,
offset: int = 0,
limit: Optional[int] = None,
) -> Union[Hero, List[Hero]]:
def list() -> Union[Hero, List[Hero]]:
"list many heros"
heros = Heros.list(where=where, offset=offset, limit=limit)
Console().print(hero)
return hero
heros = Heros.list()
Console().print(heros)
return heros
@hero_app.command()
@ -94,7 +88,6 @@ def delete(
@hero_app.command()
@engorgio(typer=True)
def populate(
n: int = 10,
) -> Hero: