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

Method setup_location_data

pokemon_v2/tests.py:607–613  ·  view source on GitHub ↗
(cls, region=None, name="lctn")

Source from the content-addressed store, hash-verified

605 # Location Data
606 @classmethod
607 def setup_location_data(cls, region=None, name="lctn"):
608 region = region or cls.setup_region_data(name="rgn for " + name)
609
610 location = Location(name=name, region=region)
611 location.save()
612
613 return location
614
615 @classmethod
616 def setup_location_game_index_data(cls, location, game_index=0):

Callers 5

test_region_apiMethod · 0.80
test_location_apiMethod · 0.80

Calls 2

LocationClass · 0.85
setup_region_dataMethod · 0.80

Tested by

no test coverage detected