Skip to content

Commit

Permalink
-test_ColorSpace: Just quickly add in AcademySoftwareFoundation#1734
Browse files Browse the repository at this point in the history
…change.

Signed-off-by: Mei Chu <[email protected]>
  • Loading branch information
meimchu committed Jan 25, 2023
1 parent 5234d70 commit 81b8395
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/python/test_ColorSpace.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,12 @@ def test_display_referred(self, cfg, cs_name, expected_value):
)
self.assertEqual(is_linear_to_display_reference, expected_value)

# Test undefined color spaces.
with self.assertRaises(OCIO.Exception):
cfg.isColorSpaceLinear('colorspace_abc', OCIO.REFERENCE_SPACE_SCENE)
with self.assertRaises(OCIO.Exception):
cfg.isColorSpaceLinear('colorspace_abc', OCIO.REFERENCE_SPACE_DISPLAY)

# Test the scene referred color spaces.
test_scene_referred(self, cfg, "display_data", False)
test_scene_referred(self, cfg, "display_linear-enc", False)
Expand Down

0 comments on commit 81b8395

Please sign in to comment.