🔀 Merge pull request #97 from sheiun/patch-1

Fix DeckEmptyError
This commit is contained in:
Jannes Höke 2021-03-12 21:14:59 +01:00 committed by GitHub
commit 4c5c0d9eab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,6 +74,7 @@ class Test(unittest.TestCase):
def test_draw(self): def test_draw(self):
p = Player(self.game, "Player 0") p = Player(self.game, "Player 0")
self.game.start()
deck_before = len(self.game.deck.cards) deck_before = len(self.game.deck.cards)
top_card = self.game.deck.cards[-1] top_card = self.game.deck.cards[-1]
@ -85,6 +86,7 @@ class Test(unittest.TestCase):
def test_draw_two(self): def test_draw_two(self):
p = Player(self.game, "Player 0") p = Player(self.game, "Player 0")
self.game.start()
deck_before = len(self.game.deck.cards) deck_before = len(self.game.deck.cards)
self.game.draw_counter = 2 self.game.draw_counter = 2