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

Method setup_item_data

pokemon_v2/tests.py:329–346  ·  view source on GitHub ↗
(
        cls,
        item_category=None,
        item_fling_effect=None,
        name="itm",
        cost=100,
        fling_power=100,
    )

Source from the content-addressed store, hash-verified

327
328 @classmethod
329 def setup_item_data(
330 cls,
331 item_category=None,
332 item_fling_effect=None,
333 name="itm",
334 cost=100,
335 fling_power=100,
336 ):
337 item = Item.objects.create(
338 name=name,
339 item_category=item_category,
340 cost=cost,
341 fling_power=fling_power,
342 item_fling_effect=item_fling_effect,
343 )
344 item.save()
345
346 return item
347
348 @classmethod
349 def setup_item_name_data(cls, item, name="itm nm"):

Callers 7

setup_berry_dataMethod · 0.80
test_item_apiMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected