Skip to content

Commit

Permalink
♻️ Address coverage hit
Browse files Browse the repository at this point in the history
  • Loading branch information
akrherz committed Oct 25, 2024
1 parent 0f658d3 commit be19c25
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
Binary file added tests/plot/baseline/test_fillstates_cornbelt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 15 additions & 1 deletion tests/plot/test_geoplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ def test_contourf_grid():
return mp.fig


@pytest.mark.mpl_image_compare(tolerance=0)
@pytest.mark.mpl_image_compare(tolerance=PAIN)
def test_fillstates():
"""Can we fill states"""
data = {"AK": 10, "HI": 30, "IA": 40, "NY": 80, "CT": 100, "RI": 100}
Expand All @@ -741,6 +741,20 @@ def test_fillstates():
return mp.fig


@pytest.mark.mpl_image_compare(tolerance=PAIN)
def test_fillstates_cornbelt():
"""Can we fill states"""
data = {"AK": 10, "HI": 30, "IA": 40, "NY": 80, "CT": 100, "RI": 100}
mp = MapPlot(
sector="cornbelt",
title="Fill States",
subtitle="test_fillstates_corbelt",
nocaption=True,
)
mp.fill_states(data, lblformat="%.0f", ilabel=True, labelbuffer=0)
return mp.fig


@pytest.mark.mpl_image_compare(tolerance=PAIN)
def test_drawcounties():
"""draw counties on the map"""
Expand Down

0 comments on commit be19c25

Please sign in to comment.