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 b20fbc9 commit d10a449Copy full SHA for d10a449
stock_alerter/tests/test_legacy.py
@@ -54,3 +54,15 @@ def test_processor_characterization_5(self):
54
updates = [("GOOG", datetime(2014, 12, 8), 5)]
55
processor.do_updates(updates)
56
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