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"])