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

Method setup_location_game_index_data

pokemon_v2/tests.py:616–624  ·  view source on GitHub ↗
(cls, location, game_index=0)

Source from the content-addressed store, hash-verified

614
615 @classmethod
616 def setup_location_game_index_data(cls, location, game_index=0):
617 generation = cls.setup_generation_data(name="gen for itm gm indx")
618
619 location_game_index = LocationGameIndex.objects.create(
620 location=location, game_index=game_index, generation=generation
621 )
622 location_game_index.save()
623
624 return location_game_index
625
626 @classmethod
627 def setup_location_name_data(cls, location, name="lctn nm"):

Callers 1

test_location_apiMethod · 0.80

Calls 1

setup_generation_dataMethod · 0.80

Tested by

no test coverage detected