File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 3
3
import pytest
4
4
5
5
import pandas_datareader .data as web
6
+ import pandas .util .testing as tm
6
7
7
8
8
9
class TestIEXDaily (object ):
@@ -62,12 +63,12 @@ def test_multiple_symbols_2(self):
62
63
assert len (t ) == 73
63
64
64
65
expected1 = a .loc ["2017-02-09" ]
65
- assert expected1 ["close" ] == 132.42
66
- assert expected1 ["high" ] == 132.445
66
+ tm . assert_almost_equal ( expected1 ["close" ], 130.36 , check_less_precise = True )
67
+ tm . assert_almost_equal ( expected1 ["high" ], 130.38 , check_less_precise = True )
67
68
68
69
expected2 = a .loc ["2017-05-24" ]
69
- assert expected2 ["close" ] == 153.34
70
- assert expected2 ["high" ] == 154.17
70
+ tm . assert_almost_equal ( expected2 ["close" ], 151.57 , check_less_precise = True )
71
+ tm . assert_almost_equal ( expected2 ["high" ], 152.40 , check_less_precise = True )
71
72
72
73
expected3 = t .loc ["2017-02-09" ]
73
74
assert expected3 ["close" ] == 269.20
You can’t perform that action at this time.
0 commit comments