From 3e5e4cd3ba720515ee1b525d10b9bded4a3d0c50 Mon Sep 17 00:00:00 2001 From: Raventric <78981416+Ravencentric@users.noreply.github.com> Date: Sun, 17 Mar 2024 08:52:49 +0530 Subject: [PATCH] explicitly specify type --- tests/test_anilist.py | 2 +- tests/test_async_anilist.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_anilist.py b/tests/test_anilist.py index b5d8848..ba09be7 100644 --- a/tests/test_anilist.py +++ b/tests/test_anilist.py @@ -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 diff --git a/tests/test_async_anilist.py b/tests/test_async_anilist.py index b8266f1..7e12b6b 100644 --- a/tests/test_async_anilist.py +++ b/tests/test_async_anilist.py @@ -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