初始化

This commit is contained in:
2025-11-15 07:42:57 +08:00
commit 19cc8a992e
18 changed files with 1004 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/env python
"""Tests for `SmartSaveImage` package."""
import pytest
from src.SmartSaveImage.nodes import Example
@pytest.fixture
def example_node():
"""Fixture to create an Example node instance."""
return Example()
def test_example_node_initialization(example_node):
"""Test that the node can be instantiated."""
assert isinstance(example_node, Example)
def test_return_types():
"""Test the node's metadata."""
assert Example.RETURN_TYPES == ("IMAGE",)
assert Example.FUNCTION == "test"
assert Example.CATEGORY == "Example"