File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -262,8 +262,8 @@ def init_efficient_frontier_reb():
262
262
ccy = "USD" ,
263
263
first_date = "2019-01" ,
264
264
last_date = "2020-02" ,
265
- n_points = 4 ,
265
+ n_points = 2 ,
266
266
verbose = False ,
267
- full_frontier = True ,
267
+ full_frontier = False ,
268
268
inflation = True ,
269
269
)
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ python_files = test_*
5
5
python_classes = Test*
6
6
python_functions = test_*
7
7
xfail_strict = true
8
- addopts = -n auto
8
+ addopts = -n auto -p no:warnings
9
9
10
10
markers =
11
11
smoke: All critical smoke tests
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ def test_repr(init_efficient_frontier_reb):
37
37
def test_gmv_annual_weights (init_efficient_frontier_reb ):
38
38
assert_allclose (
39
39
init_efficient_frontier_reb .gmv_annual_weights ,
40
- np .array ([0.384194 , 0.615806 ]),
40
+ np .array ([0.447667 , 0.552333 ]),
41
41
rtol = 1e-2 ,
42
42
atol = 1e-2 ,
43
43
)
@@ -52,10 +52,10 @@ def test_gmv_annual_values(init_efficient_frontier_reb):
52
52
@mark .rebalance
53
53
@mark .frontier
54
54
def test_max_return (init_efficient_frontier_reb ):
55
- assert init_efficient_frontier_reb .global_max_return_portfolio ["CAGR" ] == approx (0.18899667 , rel = 1e-2 )
55
+ assert init_efficient_frontier_reb .global_max_return_portfolio ["CAGR" ] == approx (0.1623 , abs = 1e-2 )
56
56
57
57
58
58
@mark .rebalance
59
59
@mark .frontier
60
60
def test_ef_points_reb (init_efficient_frontier_reb ):
61
- assert init_efficient_frontier_reb .ef_points ["CAGR" ].iloc [1 ] == approx (0.18241452 , rel = 1e-2 )
61
+ assert init_efficient_frontier_reb .ef_points ["CAGR" ].iloc [1 ] == approx (0.1623 , abs = 1e-2 )
You can’t perform that action at this time.
0 commit comments