File: test_meta.py

package info (click to toggle)
python-pyvista 0.44.1-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 159,804 kB
  • sloc: python: 72,164; sh: 118; makefile: 68
file content (19 lines) | stat: -rw-r--r-- 453 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"""Meta-tests for the test suite.

Module for tests that test the test setup itself, and in general
anything that's beyond testing actual library code.

"""

from __future__ import annotations


def test_mpl_backend():
    """Check if the backend is correctly set for testing."""
    # only fail if matplotlib is otherwise available
    try:
        import matplotlib as mpl
    except ImportError:
        return

    assert mpl.get_backend() == 'agg'