feat(combos): add Combos & Synergies detection, chip-style UI with dual hover; JSON persistence and headless honoring; stage ordering; docs and tests; bump to v2.2.1

This commit is contained in:
mwisnowski 2025-09-01 16:55:24 -07:00
parent cc16c6f13a
commit 6c48fb3437
38 changed files with 2042 additions and 131 deletions

View file

@ -0,0 +1,17 @@
from __future__ import annotations
from deck_builder.combos import detect_combos
def test_detect_expanded_pairs():
names = [
"Isochron Scepter",
"Dramatic Reversal",
"Basalt Monolith",
"Rings of Brighthearth",
"Some Other Card",
]
combos = detect_combos(names, combos_path="config/card_lists/combos.json")
found = {(c.a, c.b) for c in combos}
assert ("Isochron Scepter", "Dramatic Reversal") in found
assert ("Basalt Monolith", "Rings of Brighthearth") in found