Add new tests and functionality for image processing and geometry handling
- Introduced color_image.py for preparing standalone color images for tests. - Added hdr_image.py to create HDR textures for testing. - Implemented test_image_depth_panorama.py to evaluate panorama topology, UVs, and depth discontinuities. - Created test_shadeless.py to validate the opacity and HDR color endpoints of the Shadeless group. - Developed moge3_export.py for exporting dynamic MoGe-3 backbone and ONNX graphs. - Added material.py to inherit material slots onto generated geometry. - Built image_depth_panorama.py to construct a quad panorama with depth separation and sampling.
This commit is contained in:
@@ -53,14 +53,15 @@ class AiImageOperatorsTest(BlenderTestCase):
|
||||
|
||||
def test_upscale_operator_opens_setup_when_required_ai_is_missing(self):
|
||||
expected = {"CANCELLED"}
|
||||
operator = self.upscale.UpscaleImage()
|
||||
with patch.object(
|
||||
self.upscale,
|
||||
"invoke_ai_setup_if_needed",
|
||||
return_value=expected,
|
||||
) as setup:
|
||||
result = self.upscale.UpscaleImage().invoke(None, None)
|
||||
result = operator.invoke(None, None)
|
||||
|
||||
setup.assert_called_once_with()
|
||||
setup.assert_called_once_with(operator)
|
||||
self.assertIs(result, expected)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user