MCPcopy
hub / github.com/PokeAPI/pokeapi / setup_pokedex_data

Method setup_pokedex_data

pokemon_v2/tests.py:1278–1287  ·  view source on GitHub ↗
(cls, region=None, name="pkdx")

Source from the content-addressed store, hash-verified

1276 # Pokedex Data
1277 @classmethod
1278 def setup_pokedex_data(cls, region=None, name="pkdx"):
1279 region = region or cls.setup_region_data(name="rgn for " + name)
1280
1281 pokedex = Pokedex.objects.create(
1282 name=name,
1283 region=region,
1284 )
1285 pokedex.save()
1286
1287 return pokedex
1288
1289 @classmethod
1290 def setup_pokedex_name_data(cls, pokedex, name="pkdx nm"):

Callers 4

test_region_apiMethod · 0.80
test_pokedex_apiMethod · 0.80

Calls 1

setup_region_dataMethod · 0.80

Tested by

no test coverage detected