mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2025-12-16 07:30:13 +01:00
test: add deterministic csv fixtures for fast random checks
This commit is contained in:
parent
3b4ae36a11
commit
0e2eb29258
10 changed files with 36 additions and 2 deletions
10
csv_files/testdata/README.md
vendored
Normal file
10
csv_files/testdata/README.md
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
Frozen test dataset for deterministic tests.
|
||||
|
||||
Use by setting environment variable CSV_FILES_DIR=csv_files/testdata (or absolute path in Docker).
|
||||
|
||||
Expected minimal files:
|
||||
- cards.csv (flattened all-cards dataset for validation endpoints)
|
||||
- commander_cards.csv
|
||||
- *_cards.csv per color identity needed by tests (e.g., colorless_cards.csv)
|
||||
|
||||
Keep this tiny and representative; avoid adding large data.
|
||||
6
csv_files/testdata/cards.csv
vendored
Normal file
6
csv_files/testdata/cards.csv
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
name,faceName,edhrecRank,colorIdentity,colors,manaCost,manaValue,type,creatureTypes,text,power,toughness,keywords,themeTags,layout,side
|
||||
Shock,,,,R,{R},1,Instant,,Deal 2 damage to any target.,,,,[Burn],normal,
|
||||
Plains,,,,W,,0,Land,,{T}: Add {W}.,,,,[Land],normal,name,faceName,edhrecRank,colorIdentity,colors,manaCost,manaValue,type,creatureTypes,text,power,toughness,keywords,themeTags,layout,side
|
||||
Sol Ring,,1,Colorless,,{1},{1},Artifact,,{T}: Add {C}{C}.,,,Mana,Utility,normal,
|
||||
Llanowar Elves,,5000,G,G,{G},{1},Creature,Elf Druid,{T}: Add {G}.,1,1,Mana,Tribal;Ramp,normal,
|
||||
Island,,9999,U,U,,,Land,,{T}: Add {U}.,,,Land,,normal,
|
||||
|
2
csv_files/testdata/colors/black_cards.csv
vendored
Normal file
2
csv_files/testdata/colors/black_cards.csv
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
name,type_line,tags
|
||||
Swampshade Test,Creature,B
|
||||
|
2
csv_files/testdata/colors/colorless_cards.csv
vendored
Normal file
2
csv_files/testdata/colors/colorless_cards.csv
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
name,type_line,tags
|
||||
MyrTest,Artifact Creature,Colorless
|
||||
|
2
csv_files/testdata/colors/red_cards.csv
vendored
Normal file
2
csv_files/testdata/colors/red_cards.csv
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
name,type_line,tags
|
||||
Mountainling Test,Creature,R
|
||||
|
2
csv_files/testdata/colors/white_cards.csv
vendored
Normal file
2
csv_files/testdata/colors/white_cards.csv
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
name,type_line,tags
|
||||
Plainscycler Test,Creature,W
|
||||
|
3
csv_files/testdata/commander_cards.csv
vendored
Normal file
3
csv_files/testdata/commander_cards.csv
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
name,faceName,edhrecRank,colorIdentity,colors,manaCost,manaValue,type,creatureTypes,text,power,toughness,keywords,themeTags,layout,side
|
||||
Krenko, Mob Boss,,1200,R,R,{2}{R}{R},4,Legendary Creature,['Goblin'],Tap: Create X 1/1 red Goblin tokens.,3,3,,['Goblin Kindred'],normal,
|
||||
Isamaru, Hound of Konda,,2500,W,W,{W},1,Legendary Creature,['Hound'],Legendary creature.,2,2,,['Dog Kindred'],normal,
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue