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

Method setup_item_game_index_data

pokemon_v2/tests.py:387–395  ·  view source on GitHub ↗
(cls, item, game_index=0)

Source from the content-addressed store, hash-verified

385
386 @classmethod
387 def setup_item_game_index_data(cls, item, game_index=0):
388 generation = cls.setup_generation_data(name="gen for itm gm indx")
389
390 item_game_index = ItemGameIndex.objects.create(
391 item=item, game_index=game_index, generation=generation
392 )
393 item_game_index.save()
394
395 return item_game_index
396
397 # Contest Data
398 @classmethod

Callers 1

test_item_apiMethod · 0.80

Calls 1

setup_generation_dataMethod · 0.80

Tested by

no test coverage detected