🐐
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
import uuid
|
||||
|
||||
from dotenv import load_dotenv
|
||||
load_dotenv()
|
||||
|
||||
from game import (
|
||||
from game.rules import (
|
||||
GameState, PlayerState, CardInstance, CombatEvent, GameResult,
|
||||
create_game, resolve_combat, check_win_condition,
|
||||
action_play_card, action_sacrifice, action_end_turn,
|
||||
BOARD_SIZE, HAND_SIZE, STARTING_LIFE, MAX_ENERGY_CAP,
|
||||
)
|
||||
import uuid
|
||||
|
||||
# ── Helpers ──────────────────────────────────────────────────────────────────
|
||||
|
||||
@@ -79,6 +80,8 @@ class TestCreateGame:
|
||||
card_rarity = "common"
|
||||
image_link = ""
|
||||
text = ""
|
||||
is_favorite = False
|
||||
willing_to_trade = False
|
||||
|
||||
cards = [FakeCard() for _ in range(20)]
|
||||
state = create_game("p1", "player 1", "test", cards, "p2", "player 2", "test", cards)
|
||||
@@ -96,6 +99,8 @@ class TestCreateGame:
|
||||
card_rarity = "common"
|
||||
image_link = ""
|
||||
text = ""
|
||||
is_favorite = False
|
||||
willing_to_trade = False
|
||||
|
||||
cards = [FakeCard() for _ in range(20)]
|
||||
state = create_game("p1", "player 1", "test", cards, "p2", "player 2", "test", cards)
|
||||
@@ -113,6 +118,8 @@ class TestCreateGame:
|
||||
card_rarity = "common"
|
||||
image_link = ""
|
||||
text = ""
|
||||
is_favorite = False
|
||||
willing_to_trade = False
|
||||
|
||||
cards = [FakeCard() for _ in range(20)]
|
||||
state = create_game("p1", "player 1", "test", cards, "p2", "player 2", "test", cards)
|
||||
@@ -131,6 +138,8 @@ class TestCreateGame:
|
||||
card_rarity = "common"
|
||||
image_link = ""
|
||||
text = ""
|
||||
is_favorite = False
|
||||
willing_to_trade = False
|
||||
|
||||
cards = [FakeCard() for _ in range(20)]
|
||||
state = create_game("p1", "player 1", "test", cards, "p2", "player 2", "test", cards)
|
||||
|
||||
Reference in New Issue
Block a user