How to use the jikanpy.APIException function in jikanpy

To help you get started, we’ve selected a few jikanpy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github AWConant / jikanpy / tests / test_jikan.py View on Github external
def test_season_failure(jikan):
    with pytest.raises(APIException):
        jikan.season(year=-1, season=SEASON)
github AWConant / jikanpy / tests / test_aiojikan.py View on Github external
async def test_season_failure(aio_jikan):
    with pytest.raises(APIException):
        await aio_jikan.season(year=-1, season=SEASON)
    await aio_jikan.close()
github AWConant / jikanpy / tests / test_aiojikan.py View on Github external
async def test_anime_failure(aio_jikan):
    with pytest.raises(APIException):
        await aio_jikan.anime(-1)
    await aio_jikan.close()
github AWConant / jikanpy / tests / test_jikan.py View on Github external
def test_anime_failure(jikan):
    with pytest.raises(APIException):
        jikan.anime(-1)