Closed jimkaal closed 2 years ago
The assert at the end should be self.assertEqual(player.team[0].pet.name, "honey-bee")
Here's the version of the test without the mushroom in the shop and the correct assert
def test_honey_shop(self):
scorpion = Pet("scorpion")
scorpion.status = "status-honey-bee"
player = Player(shop=Shop(["sleeping-pill"]), team=Team([scorpion]))
player.buy_food(0, 0)
self.assertEqual(player.team[0].pet.name, "pet-honey-bee")