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_get_url_with_page():
assert utils.get_url_with_page(utils.BASE_URL, 2) == "https://api.jikan.moe/v3/2"
def test_get_url_with_page_none_page():
assert utils.get_url_with_page(utils.BASE_URL, None) == utils.BASE_URL
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"
)