We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54705ae commit 6fd8f45Copy full SHA for 6fd8f45
tests/test_testing.py
@@ -15,7 +15,8 @@
15
16
import pytest
17
18
-from pymc.testing import Domain
+from pymc.testing import Domain, mock_sample
19
+from tests.models import simple_normal
20
21
22
@pytest.mark.parametrize(
@@ -32,3 +33,15 @@
32
33
def test_domain(values, edges, expectation):
34
with expectation:
35
Domain(values, edges=edges)
36
+
37
38
+def test_mock_sample() -> None:
39
+ _, model, _ = simple_normal(bounded_prior=True)
40
41
+ idata = mock_sample(model=model)
42
43
+ assert "posterior" in idata
44
+ assert "observed_data" in idata
45
+ assert "prior" not in idata
46
+ assert "posterior_predictive" not in idata
47
+ assert "sample_stats" not in idata
0 commit comments