mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-13 09:27:06 +08:00
Add non-string test
This commit is contained in:
parent
3dca9a0c67
commit
41c2dfb441
@ -59,6 +59,14 @@ def test_single_vs_multiple():
|
|||||||
assert not validate_node_input("STRING,INT,BOOLEAN", "STRING", strict=True)
|
assert not validate_node_input("STRING,INT,BOOLEAN", "STRING", strict=True)
|
||||||
|
|
||||||
|
|
||||||
|
def test_non_string():
|
||||||
|
"""Test non-string types"""
|
||||||
|
obj1 = object()
|
||||||
|
obj2 = object()
|
||||||
|
assert validate_node_input(obj1, obj1)
|
||||||
|
assert not validate_node_input(obj1, obj2)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
"received,input_type,strict,expected",
|
"received,input_type,strict,expected",
|
||||||
[
|
[
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user