Thanks to visit codestin.com Credit goes to github.com
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 7bd73f7 commit 98ee0ecCopy full SHA for 98ee0ec
stock_alerter/tests/test_legacy.py
@@ -0,0 +1,14 @@
1
+import unittest
2
+from unittest import mock
3
+
4
+from ..legacy import AlertProcessor
5
6
7
+class AlertProcessorTest(unittest.TestCase):
8
+ @mock.patch("builtins.print")
9
+ def test_processor_characterization_1(self, mock_print):
10
+ AlertProcessor()
11
+ mock_print.assert_has_calls([mock.call("AAPL", 8),
12
+ mock.call("GOOG", 15),
13
+ mock.call("AAPL", 10),
14
+ mock.call("GOOG", 21)])
0 commit comments