mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2025-12-17 08:00:13 +01:00
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:
parent
cc16c6f13a
commit
6c48fb3437
38 changed files with 2042 additions and 131 deletions
17
code/tests/test_detect_combos_expanded.py
Normal file
17
code/tests/test_detect_combos_expanded.py
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue