manny405 / sapai

Super auto pets engine built with reinforment learning training in mind
MIT License
67 stars 21 forks source link

Honey bee in shop not implemented #49

Closed jimkaal closed 2 years ago

jimkaal commented 2 years ago
    def test_honey_shop(self):
        scorpion = Pet("scorpion")
        scorpion.status = "status-honey-bee"
        player = Player(shop=Shop(["sleeping-pill", "mushroom"]), team=Team([scorpion]))
        player.buy_food(0, 0)
        self.assertEqual(player.team[0].pet.name, "scorpion")
alexdriedger commented 2 years ago

The assert at the end should be self.assertEqual(player.team[0].pet.name, "honey-bee")

alexdriedger commented 2 years ago

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