data(spells): add batch 1 of PC spell list (32 spells)

This commit is contained in:
2026-09-10 18:49:54 +02:00
parent 91f70f19ca
commit 07e0d83300
36 changed files with 571 additions and 7 deletions
+5 -4
View File
@@ -123,13 +123,13 @@ def _make_engine(
class TestSpellLoading:
"""Given: data/spells/ directory with 11 JSON spell files
"""Given: data/spells/ directory with 43 JSON spell files
When: load_spell_registry is called
Then: all 11 spells are loaded with correct fields."""
Then: all 43 spells are loaded with correct fields."""
def test_loads_all_10_spells(self) -> None:
reg = load_spell_registry(_SPELLS_DIR)
assert len(reg) == 11
assert len(reg) == 43
def test_spell_names_present(self) -> None:
reg = load_spell_registry(_SPELLS_DIR)
@@ -139,7 +139,8 @@ class TestSpellLoading:
"Fear", "Bull's Strength", "Acid Arrow",
"Summon Monster II",
}
assert set(reg) == expected
assert expected <= set(reg)
assert len(reg) == 43
def test_fireball_fields(self) -> None:
spell = load_spell(_SPELLS_DIR / "fireball.json")