Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/PokeAPI/pokeapi
/ fields_are_valid
Method
fields_are_valid
pokemon_v2/test_models.py:9–11 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
7
Ability.objects.create(name=
"Smell"
, generation_id=3, is_main_series=True)
8
9
def
fields_are_valid(self):
10
smell = Ability.objects.get(name=
"Smell"
)
11
self.assertEqual(smell.generation_id, 3)
Callers
nothing calls this directly
Calls
1
get
Method · 0.80
Tested by
no test coverage detected