Skip to content

Commit b065709

Browse files
committed
Add test
1 parent 3faae09 commit b065709

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/model/test_model_api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ def model_wrapped3(mu):
3030
pm.Normal("x", mu, 1.0, dims="obs")
3131

3232
mw3 = model_wrapped3(0.0, coords=coords)
33+
mw4 = model_wrapped(np.array([np.nan]), coords=coords)
3334

3435
np.testing.assert_equal(model.point_logps(), mw.point_logps())
3536
np.testing.assert_equal(mw.point_logps(), mw2.point_logps())
3637
assert mw3["mu"] in mw3.data_vars
38+
assert "mu" not in mw4

0 commit comments

Comments
 (0)