Skip to content

Commit 1ed8b5b

Browse files
committed
add missing type annotation for MagicMock
1 parent 730874d commit 1ed8b5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/apps/app/commands/test_show_all.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
from unittest import TestCase
2-
from unittest.mock import call, patch
2+
from unittest.mock import call, patch, MagicMock
33

44
from piccolo.apps.app.commands.show_all import show_all
55

66

77
class TestShowAll(TestCase):
88
@patch("piccolo.apps.app.commands.show_all.print")
9-
def test_show_all(self, print_):
9+
def test_show_all(self, print_: MagicMock):
1010
show_all()
1111

1212
self.assertEqual(

0 commit comments

Comments
 (0)