diff --git a/tests/test_cacu_bayes_prevalence.py b/tests/test_cacu_bayes_prevalence.py index 75549a7..37815e7 100644 --- a/tests/test_cacu_bayes_prevalence.py +++ b/tests/test_cacu_bayes_prevalence.py @@ -1,3 +1,4 @@ +import pytest import numpy as np from scipy.stats import norm @@ -97,6 +98,7 @@ def test_patterns_keep_every_woman(): def test_summed_likelihood_matches_a_direct_sum(): + pytest.importorskip("pymc") # optional dependency, not in the production environment """Fails if the PyMC likelihood with g summed out differs from summing P(data | g) P(g) woman by woman.""" X, r, y, U, arc = _referral_sample(n=400) beta, kappa, delta = np.array([-1.0, 0.9]), 0.65, np.array([-1.5, 2.5, 1.2])