Skip to content

Commit

Permalink
Added xticklabel assert
Browse files Browse the repository at this point in the history
  • Loading branch information
utkarsh-maheshwari committed Jun 11, 2021
1 parent ab02a78 commit c465126
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arviz/tests/base_tests/test_plots_matplotlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -955,6 +955,8 @@ def test_plot_posterior_boolean():
data = np.random.choice(a=[False, True], size=(4, 100))
axes = plot_posterior(data)
assert axes
assert 0 not in axes.get_xticklabels()
assert 1 not in axes.get_xticklabels()


@pytest.mark.parametrize("kwargs", [{}, {"point_estimate": "mode"}, {"bins": None, "kind": "hist"}])
Expand Down

0 comments on commit c465126

Please sign in to comment.