File size: 972 Bytes
bb3fbf9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import pytest

from engine.game.game_state import initialize_game


class TestVerificationBatch25:
    @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.fill(False)
        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_pln_bp3_004_p_smoke(self, game_state):
        gs = game_state
        assert self.get_card_id(gs, "PL!N-bp3-004-P") is not None

    def test_pln_bp3_004_r_smoke(self, game_state):
        gs = game_state
        assert self.get_card_id(gs, "PL!N-bp3-004-R") is not None