Commit bf9abd9 1 parent 6ffb451 commit bf9abd9 Copy full SHA for bf9abd9
File tree 1 file changed +7
-9
lines changed
1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -123,18 +123,16 @@ def test_bootstrap_existing_outcomes(setup):
123
123
result = bootstrap (
124
124
data = setup ["df" ],
125
125
outcome = _outcome_func ,
126
+ n_draws = 3 ,
127
+ )
128
+ assert len (result .outcomes ) == 3
129
+ result = bootstrap (
130
+ outcome = _outcome_func ,
131
+ data = setup ["df" ],
132
+ existing_result = result ,
126
133
n_draws = 2 ,
127
134
)
128
135
assert len (result .outcomes ) == 2
129
- with pytest .warns (RuntimeWarning ):
130
- # As there is only one draw, multiple warnings are raised that can be ignored
131
- result = bootstrap (
132
- outcome = _outcome_func ,
133
- data = setup ["df" ],
134
- existing_result = result ,
135
- n_draws = 1 ,
136
- )
137
- assert len (result .outcomes ) == 1
138
136
139
137
140
138
def test_bootstrap_from_outcomes (setup , expected ):
You can’t perform that action at this time.
0 commit comments