InvokeAI/tests/nodes
psychedelicious 044d4c107a feat(nodes): move all invocation metadata (type, title, tags, category) to decorator
All invocation metadata (type, title, tags and category) are now defined in decorators.

The decorators add the `type: Literal["invocation_type"]: "invocation_type"` field to the invocation.

Category is a new invocation metadata, but it is not used by the frontend just yet.

- `@invocation()` decorator for invocations

```py
@invocation(
    "sdxl_compel_prompt",
    title="SDXL Prompt",
    tags=["sdxl", "compel", "prompt"],
    category="conditioning",
)
class SDXLCompelPromptInvocation(BaseInvocation, SDXLPromptInvocationBase):
    ...
```

- `@invocation_output()` decorator for invocation outputs

```py
@invocation_output("clip_skip_output")
class ClipSkipInvocationOutput(BaseInvocationOutput):
    ...
```

- update invocation docs
- add category to decorator
- regen frontend types
2023-08-30 18:35:12 +10:00
..
__init__.py parent 9eed1919c2 2023-02-24 18:57:02 -08:00
test_graph_execution_state.py fix(tests): fix tests 2023-08-22 10:26:11 +10:00
test_invoker.py fix unit tests 2023-08-02 18:31:10 -04:00
test_node_graph.py fix(tests): fix tests 2023-08-22 10:26:11 +10:00
test_nodes.py feat(nodes): move all invocation metadata (type, title, tags, category) to decorator 2023-08-30 18:35:12 +10:00
test_sqlite.py Apply black 2023-07-27 10:54:01 -04:00