From a5d8ba6709935111e83ea6612b74cb84133acc37 Mon Sep 17 00:00:00 2001 From: Tim McCarthy Date: Tue, 9 Jun 2026 16:22:40 -0700 Subject: [PATCH] Fix bug in test --- tests/test_game.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/test_game.py b/tests/test_game.py index 048b13d..3d6a47a 100644 --- a/tests/test_game.py +++ b/tests/test_game.py @@ -201,6 +201,15 @@ def test_secret_technique_auto_success(session): def test_joker_play(session): game = crud.create_game(session) + # Remove Joker1 and 10C from deck to prevent flakiness + deck = json.loads(game.deck_cards) + if "Joker1" in deck: + deck.remove("Joker1") + if "10C" in deck: + deck.remove("10C") + game.deck_cards = json.dumps(deck) + session.add(game) + p1 = crud.add_player(session, game.id, "P1") p1.role = "pirat" p1.hand_cards = json.dumps(["Joker1"])