Coverage for plotting/tests/test_corresponding.py: 100%
16 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.corresponding` module."""
3from __future__ import annotations
5from matplotlib.axes import Axes
6from matplotlib.figure import Figure
8from colour.plotting import plot_corresponding_chromaticities_prediction
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 "TestPlotCorrespondingChromaticitiesPrediction",
19]
22class TestPlotCorrespondingChromaticitiesPrediction:
23 """
24 Define :func:`colour.plotting.corresponding.\
25plot_corresponding_chromaticities_prediction` definition unit tests methods.
26 """
28 def test_plot_corresponding_chromaticities_prediction(self) -> None:
29 """
30 Test :func:`colour.plotting.corresponding.\
31plot_corresponding_chromaticities_prediction` definition.
32 """
34 figure, axes = plot_corresponding_chromaticities_prediction()
36 assert isinstance(figure, Figure)
37 assert isinstance(axes, Axes)