From 6867c79185c446944d2254657f78eba465d3e8b4 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Mon, 27 Nov 2023 13:02:09 +1100 Subject: [PATCH] fix(tests): remove deprecated arg --- tests/nodes/test_nodes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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")