diff --git a/tests/nodes/test_nodes.py b/tests/nodes/test_nodes.py index caafa33591..84304d09ac 100644 --- a/tests/nodes/test_nodes.py +++ b/tests/nodes/test_nodes.py @@ -15,12 +15,12 @@ from invokeai.app.invocations.image import ImageField # Define test invocations before importing anything that uses invocations @invocation_output("test_list_output") class ListPassThroughInvocationOutput(BaseInvocationOutput): - collection: list[ImageField] = OutputField(default_factory=list) + collection: list[ImageField] = OutputField(default=[]) @invocation("test_list") class ListPassThroughInvocation(BaseInvocation): - collection: list[ImageField] = InputField(default_factory=list) + collection: list[ImageField] = InputField(default=[]) def invoke(self, context: InvocationContext) -> ListPassThroughInvocationOutput: return ListPassThroughInvocationOutput(collection=self.collection) @@ -70,7 +70,7 @@ class ImageToImageTestInvocation(BaseInvocation): @invocation_output("test_prompt_collection_output") class PromptCollectionTestInvocationOutput(BaseInvocationOutput): - collection: list[str] = OutputField(default_factory=list) + collection: list[str] = OutputField(default=[]) @invocation("test_prompt_collection")