fix(tests): remove deprecated arg

This commit is contained in:
psychedelicious 2023-11-27 13:02:09 +11:00
parent a1705dc6b3
commit 6867c79185

View File

@ -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")