File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 7
7
import pytest
8
8
9
9
from pymc .model .transform .optimization import freeze_dims_and_data
10
+ from pymc .testing import mock_sample_setup_and_teardown
10
11
11
12
from pymc_extras .statespace .utils .constants import (
12
13
FILTER_OUTPUT_NAMES ,
30
31
nile = load_nile_test_data ()
31
32
ALL_SAMPLE_OUTPUTS = MATRIX_NAMES + FILTER_OUTPUT_NAMES + SMOOTHER_OUTPUT_NAMES
32
33
34
+ mock_pymc_sample = pytest .fixture (scope = "session" )(mock_sample_setup_and_teardown )
35
+
33
36
34
37
@pytest .fixture (scope = "session" )
35
38
def pymc_mod (ss_mod ):
@@ -66,7 +69,7 @@ def exog_pymc_mod(exog_ss_mod, rng):
66
69
67
70
68
71
@pytest .fixture (scope = "session" )
69
- def idata (pymc_mod , rng ):
72
+ def idata (pymc_mod , rng , mock_pymc_sample ):
70
73
with warnings .catch_warnings ():
71
74
warnings .simplefilter ("ignore" )
72
75
with pymc_mod :
@@ -88,7 +91,7 @@ def idata(pymc_mod, rng):
88
91
89
92
90
93
@pytest .fixture (scope = "session" )
91
- def idata_exog (exog_pymc_mod , rng ):
94
+ def idata_exog (exog_pymc_mod , rng , mock_pymc_sample ):
92
95
with warnings .catch_warnings ():
93
96
warnings .simplefilter ("ignore" )
94
97
You can’t perform that action at this time.
0 commit comments