Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_season_failure(jikan):
with pytest.raises(APIException):
jikan.season(year=-1, season=SEASON)
async def test_season_failure(aio_jikan):
with pytest.raises(APIException):
await aio_jikan.season(year=-1, season=SEASON)
await aio_jikan.close()
async def test_anime_failure(aio_jikan):
with pytest.raises(APIException):
await aio_jikan.anime(-1)
await aio_jikan.close()
def test_anime_failure(jikan):
with pytest.raises(APIException):
jikan.anime(-1)