Files
0nikod-ComfyUI-Metadata-Tools/tests/test_comfyui_metadata_tools.py
2026-01-14 22:09:05 +08:00

22 lines
588 B
Python

#!/usr/bin/env python
"""Tests for `comfyui_metadata_tools` package."""
import pytest
from src.comfyui_metadata_tools.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"