Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert tests/test_plot to PyTest #5839

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions lib/iris/tests/_shared_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -990,3 +990,11 @@ def env_bin_path(exe_name: AnyStr = None):
if exe_name is not None:
exe_path = exe_path / exe_name
return exe_path


class GraphicsTest:
"""All inheriting classes automatically have access to ``self.check_graphic()``."""

@pytest.fixture(autouse=True)
def _get_check_graphics(self, check_graphic_caller):
self.check_graphic = check_graphic_caller
Loading
Loading