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

Skip to content

Commit 4d3d9dd

Browse files
author
Siddharta Govindaraj
committed
Ninth characterisation test
1 parent 9e9ba2e commit 4d3d9dd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

stock_alerter/tests/test_legacy.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,10 @@ def test_processor_characterization_8(self):
8484
with mock.patch("builtins.print") as mock_print:
8585
processor.run()
8686
self.assertFalse(mock_print.called)
87+
88+
def test_processor_characterization_9(self):
89+
processor = AlertProcessor(autorun=False)
90+
processor.print_action = mock.Mock()
91+
processor.do_updates([
92+
('GOOG', datetime(2014, 2, 11, 14, 12, 22, 130000), 15)])
93+
self.assertTrue(processor.print_action.called)

0 commit comments

Comments
 (0)