Buckets:
| from comfy_extras.nodes_toolkit import CreateList, GetItemFromList | |
| def test_create_list_accepts_heterogeneous_inputs(): | |
| inputs = CreateList.INPUT_TYPES() | |
| assert inputs["required"]["inputs"][1]["template"]["input"] == { | |
| "required": {"input": ("*", {})} | |
| } | |
| assert CreateList.RETURN_TYPES == ["*"] | |
| assert CreateList.OUTPUT_IS_LIST == [True] | |
| assert CreateList.execute({"input0": ["text"], "input1": [42]}).result == (["text", 42],) | |
| def test_get_item_from_list_uses_integer_index(): | |
| assert GetItemFromList.OUTPUT_IS_LIST == [False] | |
| assert GetItemFromList.execute(["text", 42], [1]).result == (42,) | |
| assert GetItemFromList.execute( | |
| [["image 1", "image 2"], ["text 1", "text 2"]], [0] | |
| ).result == (["image 1", "image 2"],) | |
Xet Storage Details
- Size:
- 775 Bytes
- Xet hash:
- 93ef5a9816c9226a406ce98f77569faef97c1bbe83864fe4d7bb9d36a707d5c4
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.