Skip to content

Commit

Permalink
BUG: Add test for Unidata#271.
Browse files Browse the repository at this point in the history
It looks like this was fixed with earlier SkewT adjustments, but it's
still good to add a test (that failed without the fix). While we're at
it, this test also hits the path that automatically creates a new
figure.
  • Loading branch information
dopplershift committed Dec 12, 2016
1 parent c5704d7 commit c46ad98
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions metpy/plots/tests/test_skewt.py
Expand Up @@ -53,6 +53,13 @@ def test_skewt_gridspec():
return fig


def test_skewt_with_grid_enabled():
"""Test using SkewT when gridlines are already enabled (#271)."""
with plt.rc_context(rc={'axes.grid': True}):
# Also tests when we don't pass in Figure
SkewT()


@pytest.mark.mpl_image_compare(tolerance=0, remove_text=True)
def test_hodograph_api():
"""Basic test of Hodograph API."""
Expand Down

0 comments on commit c46ad98

Please sign in to comment.