How to use the jikanpy.utils.get_url_with_page 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_utils.py View on Github external
def test_get_url_with_page():
    assert utils.get_url_with_page(utils.BASE_URL, 2) == "https://api.jikan.moe/v3/2"
github AWConant / jikanpy / tests / test_utils.py View on Github external
def test_get_url_with_page_none_page():
    assert utils.get_url_with_page(utils.BASE_URL, None) == utils.BASE_URL
github AWConant / jikanpy / tests / test_utils.py View on Github external
def test_get_url_with_page_delimiter():
    assert (
        utils.get_url_with_page(utils.BASE_URL, 2, "&page=")
        == "https://api.jikan.moe/v3&page=2"
    )