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

Skip to content

Commit d10a449

Browse files
author
Siddharta Govindaraj
committed
Sixth characterisation test
1 parent b20fbc9 commit d10a449

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

stock_alerter/tests/test_legacy.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,15 @@ def test_processor_characterization_5(self):
5454
updates = [("GOOG", datetime(2014, 12, 8), 5)]
5555
processor.do_updates(updates)
5656
mock_goog.update.assert_called_with(datetime(2014, 12, 8), 5)
57+
58+
def test_processor_characterization_6(self):
59+
processor = AlertProcessor(autorun=False)
60+
processor.do_updates = mock.Mock()
61+
processor.run()
62+
processor.do_updates.assert_called_with([
63+
('GOOG', datetime(2014, 2, 11, 14, 10, 22, 130000), 5),
64+
('AAPL', datetime(2014, 2, 11, 0, 0), 8),
65+
('GOOG', datetime(2014, 2, 11, 14, 11, 22, 130000), 3),
66+
('GOOG', datetime(2014, 2, 11, 14, 12, 22, 130000), 15),
67+
('AAPL', datetime(2014, 2, 11, 0, 0), 10),
68+
('GOOG', datetime(2014, 2, 11, 14, 15, 22, 130000), 21)])

0 commit comments

Comments
 (0)