MCPcopy Index your code
hub / github.com/PokeAPI/pokeapi / setup_region_data

Method setup_region_data

pokemon_v2/tests.py:52–56  ·  view source on GitHub ↗
(cls, name="reg")

Source from the content-addressed store, hash-verified

50 # Region Data
51 @classmethod
52 def setup_region_data(cls, name="reg"):
53 region = Region.objects.create(name=name)
54 region.save()
55
56 return region
57
58 @classmethod
59 def setup_region_name_data(cls, region, name="reg nm"):

Callers 5

setup_generation_dataMethod · 0.80
setup_location_dataMethod · 0.80
setup_pokedex_dataMethod · 0.80
test_region_apiMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected