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

Method setup_item_category_data

pokemon_v2/tests.py:292–300  ·  view source on GitHub ↗
(cls, name="itm ctgry", item_pocket=None)

Source from the content-addressed store, hash-verified

290
291 @classmethod
292 def setup_item_category_data(cls, name="itm ctgry", item_pocket=None):
293 item_pocket = item_pocket or cls.setup_item_pocket_data(
294 name="itm pkt for " + name
295 )
296
297 item_category = ItemCategory.objects.create(name=name, item_pocket=item_pocket)
298 item_category.save()
299
300 return item_category
301
302 @classmethod
303 def setup_item_category_name_data(cls, item_category, name="itm ctgry nm"):

Callers 2

test_item_apiMethod · 0.80

Calls 1

Tested by

no test coverage detected