Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c0df4ca

Browse files
author
Siddharta Govindaraj
committed
Second characterisation test
1 parent d5f4f80 commit c0df4ca

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

stock_alerter/tests/test_legacy.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,12 @@ def test_processor_characterization_1(self, mock_print):
1212
mock.call("GOOG", 15),
1313
mock.call("AAPL", 10),
1414
mock.call("GOOG", 21)])
15+
16+
def test_processor_characterization_2(self):
17+
processor = AlertProcessor(autorun=False)
18+
with mock.patch("builtins.print") as mock_print:
19+
processor.run()
20+
mock_print.assert_has_calls([mock.call("AAPL", 8),
21+
mock.call("GOOG", 15),
22+
mock.call("AAPL", 10),
23+
mock.call("GOOG", 21)])

0 commit comments

Comments
 (0)