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

Skip to content

Commit 98ee0ec

Browse files
author
Siddharta Govindaraj
committed
First characterisation test
1 parent 7bd73f7 commit 98ee0ec

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

stock_alerter/tests/test_legacy.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)