mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(tests): remove deprecated arg
This commit is contained in:
parent
a1705dc6b3
commit
6867c79185
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user