We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f72b1ba commit 74eb634Copy full SHA for 74eb634
tests/creational/test_abstract_factory.py
@@ -8,5 +8,6 @@ class TestPetShop(unittest.TestCase):
8
def test_dog_pet_shop_shall_show_dog_instance(self):
9
dog_pet_shop = PetShop(Dog)
10
with patch.object(Dog, "speak") as mock_Dog_speak:
11
- dog_pet_shop.show_pet()
+ pet = dog_pet_shop.buy_pet("")
12
+ pet.speak()
13
self.assertEqual(mock_Dog_speak.call_count, 1)
0 commit comments