Skip to content

Commit

Permalink
explicitly specify type
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravencentric committed Mar 17, 2024
1 parent a5182eb commit 3e5e4cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_anilist.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def test_anilist() -> None:
media = Anilist().search("Attack on titan")
media = Anilist().search("Attack on titan", type=MediaType.ANIME)
assert media.title.romaji == "Shingeki no Kyojin"
assert media.start_date.year == 2013
assert media.source == MediaSource.MANGA
Expand Down
2 changes: 1 addition & 1 deletion tests/test_async_anilist.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


async def test_anilist() -> None:
media = await AsyncAnilist().search("Attack on titan")
media = await AsyncAnilist().search("Attack on titan", type=MediaType.ANIME)
assert media.title.romaji == "Shingeki no Kyojin"
assert media.start_date.year == 2013
assert media.source == MediaSource.MANGA
Expand Down

0 comments on commit 3e5e4cd

Please sign in to comment.