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

Method setup_stat_data

pokemon_v2/tests.py:1135–1148  ·  view source on GitHub ↗
(cls, name="stt", is_battle_only=True, game_index=1)

Source from the content-addressed store, hash-verified

1133 # Stat Data
1134 @classmethod
1135 def setup_stat_data(cls, name="stt", is_battle_only=True, game_index=1):
1136 move_damage_class = cls.setup_move_damage_class_data(
1137 name="mv dmg cls for " + name
1138 )
1139
1140 stat = Stat.objects.create(
1141 name=name,
1142 is_battle_only=is_battle_only,
1143 move_damage_class=move_damage_class,
1144 game_index=game_index,
1145 )
1146 stat.save()
1147
1148 return stat
1149
1150 @classmethod
1151 def setup_stat_name_data(cls, stat, name="stt nm"):

Callers 5

test_stat_apiMethod · 0.80
test_nature_apiMethod · 0.80

Calls 1

Tested by

no test coverage detected