Fix bug in test

This commit is contained in:
2026-06-09 16:22:40 -07:00
parent 66777ab1bc
commit a5d8ba6709

View File

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