Spaces:
Running
Running
| import pytest | |
| from engine.game.game_state import initialize_game | |
| class TestVerificationBatch24: | |
| 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_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 card is not None | |
| def test_plhs_bp2_017_n_smoke(self, game_state): | |
| self._test_vanilla(game_state, "PL!HS-bp2-017-N") | |
| def test_plhs_bp2_018_n_smoke(self, game_state): | |
| self._test_vanilla(game_state, "PL!HS-bp2-018-N") | |
| def test_plhs_bp2_019_l_smoke(self, game_state): | |
| self._test_vanilla(game_state, "PL!HS-bp2-019-L") | |
| def test_plhs_bp2_020_l_smoke(self, game_state): | |
| self._test_vanilla(game_state, "PL!HS-bp2-020-L") | |
| def test_plhs_bp2_021_l_smoke(self, game_state): | |
| self._test_vanilla(game_state, "PL!HS-bp2-021-L") | |
| def test_plhs_bp2_022_l_smoke(self, game_state): | |
| self._test_vanilla(game_state, "PL!HS-bp2-022-L") | |
| def test_plhs_bp2_023_l_smoke(self, game_state): | |
| self._test_vanilla(game_state, "PL!HS-bp2-023-L") | |
| def test_plhs_bp2_024_l_smoke(self, game_state): | |
| self._test_vanilla(game_state, "PL!HS-bp2-024-L") | |
| def test_plhs_bp2_025_l_smoke(self, game_state): | |
| self._test_vanilla(game_state, "PL!HS-bp2-025-L") | |
| def test_plhs_bp2_026_l_smoke(self, game_state): | |
| self._test_vanilla(game_state, "PL!HS-bp2-026-L") | |
| def test_pln_pr_003_pr_smoke(self, game_state): | |
| pass | |
| def test_pln_pr_005_pr_smoke(self, game_state): | |
| pass | |