Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
miawlu committed May 6, 2024
1 parent 520718d commit f1db67a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions live_bargaining/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,14 @@ def call_live_method(method, **kwargs):
method(3, {"type": "accept", "offer_id": 1})
method(2, {"type": "accept", "offer_id": 0})

if kwargs["round_number"] == 6:
print("Testing revoking acceptance")
create_offers(method, Y)
method(1, {"type": "accept", "offer_id": 1})
method(2, {"type": "accept", "offer_id": 1})
method(3, {"type": "accept", "offer_id": 1})
method(2, {"type": "accept", "offer_id": 0})


class PlayerBot(Bot):
def play_round(self):
Expand Down

0 comments on commit f1db67a

Please sign in to comment.