Skip to content

Commit 18b4b6e

Browse files
authored
Merge pull request #21781 from dstansby/ax-fixture
Use a fixture to get widget testing axes
2 parents b3f61d1 + 6a5a169 commit 18b4b6e

File tree

2 files changed

+69
-175
lines changed

2 files changed

+69
-175
lines changed

lib/matplotlib/testing/widgets.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ def get_ax():
1919
return ax
2020

2121

22+
def noop(*args, **kwargs):
23+
pass
24+
25+
2226
def mock_event(ax, button=1, xdata=0, ydata=0, key=None, step=1):
2327
r"""
2428
Create a mock event that can stand in for `.Event` and its subclasses.

0 commit comments

Comments
 (0)