Fix bug in test
This commit is contained in:
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user