LovecaSim / engine /tests /cards /batches /test_verification_batch_23.py
trioskosmos's picture
Upload folder using huggingface_hub
bb3fbf9 verified
import numpy as np
import pytest
from engine.game.game_state import initialize_game
class TestVerificationBatch23:
@pytest.fixture
def game_state(self):
gs = initialize_game(use_real_data=True)
if not gs.member_db:
pytest.skip("Card data not loaded")
gs.active_player.tapped_energy = np.zeros(20, dtype=bool)
return gs
def get_card_id(self, gs, card_no):
for cid, card in gs.member_db.items():
if card.card_no == card_no:
return cid
for cid, card in gs.live_db.items():
if card.card_no == card_no:
return cid
pytest.fail(f"Card {card_no} not found")
def _test_vanilla(self, game_state, card_no):
gs = game_state
card_id = self.get_card_id(gs, card_no)
card = gs.member_db.get(card_id) or gs.live_db.get(card_id)
assert not card.abilities
def test_plhs_bp1_001_r_smoke(self, game_state):
pass # Placeholder
def test_plhs_bp1_003_p_smoke(self, game_state):
pass
def test_plhs_bp1_004_p_smoke(self, game_state):
pass