-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
Problem
Two tests are failing due to IndexError: list index out of range in the serializers:
test_location_area_api- Failing inLocationAreaDetailSerializer.get_encounters()test_pokemon_api- Failing inPokemonDetailSerializer.get_pokemon_moves()
Error Details
Test 1: test_location_area_api
File "/code/pokemon_v2/serializers.py", line 1221, in get_encounters
version_detail["version"] = version_data[ver["version"] - 1]
IndexError: list index out of range
Test 2: test_pokemon_api
File "/code/pokemon_v2/serializers.py", line 4745, in get_pokemon_moves
version_detail["version_group"] = version_data[move["version_group"] - 1]
IndexError: list index out of range
Expected Behavior
test_location_area_apishould passtest_pokemon_apishould pass- All 51 tests should pass
Current Behavior
- 2 tests failing with IndexError
- Test suite shows "FAILED (errors=2)"
Metadata
Metadata
Assignees
Labels
No labels