Skip to content

Commit f7c7c05

Browse files
committed
include sample_kwargs
1 parent b3c00e4 commit f7c7c05

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

causalpy/tests/test_api_stability.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
from causalpy.experiments.prepostfit import SyntheticControl
2323
from causalpy.pymc_models import WeightedSumFitter
2424

25+
sample_kwargs = {"tune": 20, "draws": 20, "chains": 2, "cores": 2}
26+
2527

2628
def test_causal_inference_and_discovery_with_python_example():
2729
"""Test example used in Alexander Molak's book 'Causal Inference and Discovery in Python'
@@ -33,7 +35,7 @@ def test_causal_inference_and_discovery_with_python_example():
3335
treatment_index = pd.to_datetime("2022-10-28")
3436

3537
# Build the model
36-
model = cp.pymc_models.WeightedSumFitter()
38+
model = cp.pymc_models.WeightedSumFitter(sample_kwargs=sample_kwargs)
3739
assert isinstance(
3840
model, WeightedSumFitter
3941
), "model is not an instance of WeightedSumFitter"

0 commit comments

Comments
 (0)