- Implemented a preview tool for rectifying images with interactive aspect controls in `preview.py`. - Added tests for depth metadata loading to ensure consistent schema usage in `test_depth_metadata.py`. - Developed comprehensive tests for cutout calibration processes in `test_cutout_calibration.py`, including stability checks and depth calibration. - Created tests for frame compositing operations in `test_frame_compositing.py`, ensuring correct handling of depth and transparency. - Introduced material slot inheritance functionality in `material_slots.py` to manage geometry material assignments. - Built shared shader nodes for material processing in `shader.py`, including roughness and bump mapping setups.
24 lines
745 B
Python
24 lines
745 B
Python
from tests.support.paths import PROJECT_ROOT
|
|
import tomllib
|
|
import unittest
|
|
|
|
|
|
MANIFEST_PATH = PROJECT_ROOT / "src" / "anyimage" / "blender_manifest.toml"
|
|
|
|
|
|
class ExtensionManifestTest(unittest.TestCase):
|
|
@classmethod
|
|
def setUpClass(cls):
|
|
cls.manifest = tomllib.loads(MANIFEST_PATH.read_text(encoding="utf-8"))
|
|
|
|
def test_declares_modern_extension_metadata(self):
|
|
self.assertEqual(self.manifest["schema_version"], "1.0.0")
|
|
self.assertEqual(self.manifest["id"], "anyimage")
|
|
self.assertEqual(self.manifest["type"], "add-on")
|
|
|
|
def test_declares_required_environment_permissions(self):
|
|
self.assertEqual(
|
|
set(self.manifest["permissions"]),
|
|
{"network", "files"},
|
|
)
|