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

Method setup_nature_data

pokemon_v2/tests.py:1213–1232  ·  view source on GitHub ↗
(
        cls,
        decreased_stat=None,
        increased_stat=None,
        likes_flavor=None,
        hates_flavor=None,
        name="ntr",
        game_index=1,
    )

Source from the content-addressed store, hash-verified

1211 # Nature Data
1212 @classmethod
1213 def setup_nature_data(
1214 cls,
1215 decreased_stat=None,
1216 increased_stat=None,
1217 likes_flavor=None,
1218 hates_flavor=None,
1219 name="ntr",
1220 game_index=1,
1221 ):
1222 nature = Nature.objects.create(
1223 name=name,
1224 decreased_stat=decreased_stat,
1225 increased_stat=increased_stat,
1226 hates_flavor=hates_flavor,
1227 likes_flavor=likes_flavor,
1228 game_index=game_index,
1229 )
1230 nature.save()
1231
1232 return nature
1233
1234 @classmethod
1235 def setup_nature_name_data(cls, nature, name="ntr nm"):

Callers 2

test_stat_apiMethod · 0.80
test_nature_apiMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected