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

Skip to content

Commit 8115678

Browse files
author
Siddharta Govindaraj
committed
Expected failure
1 parent 780d5a1 commit 8115678

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

stock_alerter/tests/test_stock.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,14 @@ def setUp(self):
1212
def test_price_of_a_new_stock_class_should_be_None(self):
1313
self.assertIsNone(self.goog.price)
1414

15+
@unittest.expectedFailure
1516
def test_stock_update(self):
1617
"""An update should set the price on the stock object
1718
1819
We will be using the `datetime` module for the timestamp
1920
"""
2021
self.goog.update(datetime(2014, 2, 12), price=10)
21-
self.assertEqual(10, self.goog.price)
22-
23-
test_stock_update.slow = True
22+
self.assertEqual(100, self.goog.price)
2423

2524
def test_negative_price_should_throw_ValueError(self):
2625
with self.assertRaises(ValueError):

0 commit comments

Comments
 (0)