diff --git a/tests/test_utils.py b/tests/test_utils.py index 5165a60..1345228 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -20,7 +20,7 @@ def ax_func(**kwargs): cu.plotwrapper(ax_func)() -def test_noticks(): +def test_nospines(): """Tests all combinations of removing spines.""" compass = ('left', 'right', 'top', 'bottom') @@ -37,3 +37,16 @@ def test_noticks(): assert spine.get_visible() == (not kwargs[key]) plt.close(fig) + + +def test_noticks(): + """Tests that noticks removes both x and y ticks.""" + + fig, ax = plt.subplots() + ax.plot([1, 2, 3, 4, 5]) + cu.noticks(ax=ax) + + assert len(ax.get_xticks()) == 0 + assert len(ax.get_yticks()) == 0 + + plt.close(fig)