Skip to content

Commit 9989fb4

Browse files
committed
fix: linting
1 parent 9f72ca1 commit 9989fb4

2 files changed

Lines changed: 9 additions & 19 deletions

File tree

tests/csv_validation/game_config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ class GameConfig:
7474
89: LGPE_VERSION_PIKACHU,
7575
# Scyther
7676
123: LGPE_VERSION_PIKACHU,
77-
7877
# Eevee exclusives
7978
# Ekans, Arbok
8079
23: LGPE_VERSION_EEVEE,

tests/csv_validation/test_csv_encounters.py

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ def test_encounters_reference_valid_slots(
4444
for e in encounters_data
4545
if e["encounter_slot_id"] not in encounter_slots_lookup
4646
]
47-
assert not invalid, (
48-
f"{len(invalid)} encounters reference missing slots:\n"
49-
+ "\n".join(invalid[:10])
47+
assert (
48+
not invalid
49+
), f"{len(invalid)} encounters reference missing slots:\n" + "\n".join(
50+
invalid[:10]
5051
)
5152

5253
def test_encounters_reference_valid_location_areas(
@@ -70,9 +71,7 @@ def test_encounter_slots_reference_valid_methods(
7071
for s in encounter_slots_data
7172
if s["encounter_method_id"] not in encounter_methods_lookup
7273
]
73-
assert not invalid, (
74-
f"Slots reference missing methods:\n" + "\n".join(invalid)
75-
)
74+
assert not invalid, f"Slots reference missing methods:\n" + "\n".join(invalid)
7675

7776
def test_no_duplicate_encounter_ids(self, encounters_data):
7877
ids = [e["id"] for e in encounters_data]
@@ -96,9 +95,7 @@ class TestGameEncounters:
9695
def test_has_encounter_data(self, game_config: GameConfig, game_encounters):
9796
assert game_encounters, f"No encounters found for {game_config.name}"
9897

99-
def test_pokemon_ids_valid_for_game(
100-
self, game_config: GameConfig, game_encounters
101-
):
98+
def test_pokemon_ids_valid_for_game(self, game_config: GameConfig, game_encounters):
10299
invalid = [
103100
f"id={e['id']} pokemon={e['pokemon_id']}"
104101
for e in game_encounters
@@ -134,9 +131,7 @@ def test_min_level_not_greater_than_max(
134131
]
135132
assert not invalid, "min_level > max_level:\n" + "\n".join(invalid)
136133

137-
def test_version_exclusives_correct(
138-
self, game_config: GameConfig, game_encounters
139-
):
134+
def test_version_exclusives_correct(self, game_config: GameConfig, game_encounters):
140135
if not game_config.version_exclusives:
141136
pytest.skip("No version exclusives defined")
142137
wrong = []
@@ -155,9 +150,7 @@ def test_version_exclusives_correct(
155150
+ (f"\n... and {len(wrong) - 10} more" if len(wrong) > 10 else "")
156151
)
157152

158-
def test_no_duplicate_encounters(
159-
self, game_config: GameConfig, game_encounters
160-
):
153+
def test_no_duplicate_encounters(self, game_config: GameConfig, game_encounters):
161154
seen = set()
162155
dupes = []
163156
for e in game_encounters:
@@ -178,9 +171,7 @@ def test_no_duplicate_encounters(
178171
+ (f"\n... and {len(dupes) - 10} more" if len(dupes) > 10 else "")
179172
)
180173

181-
def test_version_ids_valid_for_game(
182-
self, game_config: GameConfig, game_encounters
183-
):
174+
def test_version_ids_valid_for_game(self, game_config: GameConfig, game_encounters):
184175
invalid_versions = set()
185176
for e in game_encounters:
186177
vid = parse_int(e["version_id"])

0 commit comments

Comments
 (0)