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

Method setup_item_attribute_description_data

pokemon_v2/tests.py:230–240  ·  view source on GitHub ↗
(
        cls, item_attribute, description="itm attr desc"
    )

Source from the content-addressed store, hash-verified

228
229 @classmethod
230 def setup_item_attribute_description_data(
231 cls, item_attribute, description="itm attr desc"
232 ):
233 language = cls.setup_language_data(name="lang for " + description)
234
235 item_attribute_description = ItemAttributeDescription.objects.create(
236 item_attribute=item_attribute, description=description, language=language
237 )
238 item_attribute_description.save()
239
240 return item_attribute_description
241
242 @classmethod
243 def setup_item_attribute_map_data(cls, item, item_attribute):

Callers 1

Calls 1

setup_language_dataMethod · 0.80

Tested by

no test coverage detected