Coverage for plotting/tests/test_graph.py: 100%
13 statements
« prev ^ index » next coverage.py v7.11.0, created at 2025-11-16 22:49 +1300
« prev ^ index » next coverage.py v7.11.0, created at 2025-11-16 22:49 +1300
1"""Define the unit tests for the :mod:`colour.plotting.graph` module."""
3from __future__ import annotations
5import tempfile
7from colour.plotting import plot_automatic_colour_conversion_graph
8from colour.utilities import is_networkx_installed, is_pydot_installed
10__author__ = "Colour Developers"
11__copyright__ = "Copyright 2013 Colour Developers"
12__license__ = "BSD-3-Clause - https://opensource.org/licenses/BSD-3-Clause"
13__maintainer__ = "Colour Developers"
14__email__ = "colour-developers@colour-science.org"
15__status__ = "Production"
17__all__ = [
18 "TestPlotAutomaticColourConversionGraph",
19]
22class TestPlotAutomaticColourConversionGraph:
23 """
24 Define :func:`colour.plotting.graph.\
25plot_automatic_colour_conversion_graph` definition unit tests methods.
26 """
28 def test_plot_automatic_colour_conversion_graph(self) -> None:
29 """
30 Test :func:`colour.plotting.graph.\
31plot_automatic_colour_conversion_graph` definition.
32 """
34 if not is_pydot_installed() or not is_networkx_installed(): # pragma: no cover
35 return
37 plot_automatic_colour_conversion_graph( # pragma: no cover
38 f"{tempfile.mkstemp()[-1]}.png"
39 )