Skip to content

Commit

Permalink
added boolean tests to plot_posterior
Browse files Browse the repository at this point in the history
  • Loading branch information
utkarsh-maheshwari committed Jun 4, 2021
1 parent 99aa489 commit 94dcae8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arviz/tests/base_tests/test_plots_matplotlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -951,6 +951,12 @@ def test_plot_posterior(models, kwargs):
assert axes.shape


def test_plot_posterior_boolean():
data = np.random.choice(a=[False, True], size=(4, 100))
axes = plot_posterior(data)
assert axes.shape


@pytest.mark.parametrize("kwargs", [{}, {"point_estimate": "mode"}, {"bins": None, "kind": "hist"}])
def test_plot_posterior_discrete(discrete_model, kwargs):
axes = plot_posterior(discrete_model, **kwargs)
Expand Down

0 comments on commit 94dcae8

Please sign in to comment.