Skip to content

Commit 1a49fff

Browse files
committed
test default sd_reference_illum shape
1 parent 8d9b79d commit 1a49fff

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

colour/quality/tests/test_cfi2017.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
reshape_sd,
2020
sd_blackbody,
2121
)
22+
from colour.colorimetry.spectrum import SPECTRAL_SHAPE_DEFAULT
2223
from colour.quality.cfi2017 import (
2324
CCT_reference_illuminant,
2425
colour_fidelity_index_CIE2017,
@@ -924,6 +925,14 @@ class TestSdReferenceIlluminant:
924925
definition unit tests methods.
925926
"""
926927

928+
def test_default_args(self) -> None:
929+
"""Test :func:`color.quality.CIE2017.sd_reference_illuminant` for
930+
default shape argument.
931+
"""
932+
933+
sd = sd_reference_illuminant(5421)
934+
assert sd.shape == SPECTRAL_SHAPE_DEFAULT
935+
927936
def test_sd_reference_illuminant(self) -> None:
928937
"""
929938
Test :func:`colour.quality.CIE2017.sd_reference_illuminant`

0 commit comments

Comments
 (0)