Skip to content

Commit 74eb634

Browse files
committed
Update test of abstract factory
1 parent f72b1ba commit 74eb634

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/creational/test_abstract_factory.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ class TestPetShop(unittest.TestCase):
88
def test_dog_pet_shop_shall_show_dog_instance(self):
99
dog_pet_shop = PetShop(Dog)
1010
with patch.object(Dog, "speak") as mock_Dog_speak:
11-
dog_pet_shop.show_pet()
11+
pet = dog_pet_shop.buy_pet("")
12+
pet.speak()
1213
self.assertEqual(mock_Dog_speak.call_count, 1)

0 commit comments

Comments
 (0)