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_strip_base_url():
temp_jikan = Jikan("http://localhost:8000/v3/")
assert temp_jikan.base == "http://localhost:8000/v3"
temp_jikan_2 = Jikan("http://localhost:8000/v3/ ")
assert temp_jikan_2.base == "http://localhost:8000/v3"
def jikan():
return Jikan()
def test_strip_base_url():
temp_jikan = Jikan("http://localhost:8000/v3/")
assert temp_jikan.base == "http://localhost:8000/v3"
temp_jikan_2 = Jikan("http://localhost:8000/v3/ ")
assert temp_jikan_2.base == "http://localhost:8000/v3"
from jikanpy import Jikan
from pprint import pprint
jikan = Jikan()
mushishi = jikan.anime(457)
pprint(mushishi)
fma = jikan.manga(25)
pprint(fma)
ginko = jikan.character(425)
pprint(ginko)
kana_hanazawa = jikan.person(189)
pprint(kana_hanazawa)
naruto = jikan.search(search_type="anime", query="naruto")
pprint(naruto)