- Implement tests for image layer functionality including alpha curve and depth layer behavior. - Create tests for image plane evaluation and modifier input handling. - Add tests to verify the saved asset inventory and its persistence. - Introduce tests for the documentation command to ensure correct project version deployment. - Validate the extension manifest structure and required permissions. - Develop tests for the packaging process, ensuring correct platform handling and dependency management. - Enhance image depth plane group functionality with new split threshold input and surface processing.
25 lines
796 B
Python
25 lines
796 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")
|
|
self.assertNotIn("bl_info", self.manifest)
|
|
|
|
def test_declares_required_environment_permissions(self):
|
|
self.assertEqual(
|
|
set(self.manifest["permissions"]),
|
|
{"network", "files"},
|
|
)
|