31 行
1.1 KiB
Python
31 行
1.1 KiB
Python
from engines.fast_character_flow import FAST_CHARACTER_STEPS, fast_character_node_templates
|
|
from engines.character_flow import gradual_node_templates
|
|
|
|
|
|
def test_fast_character_flow_generates_the_four_quick_character_images() -> None:
|
|
templates = fast_character_node_templates()
|
|
|
|
assert [item["node_key"] for item in templates] == [
|
|
"quick_avatar",
|
|
"quick_bust",
|
|
"quick_stand",
|
|
"quick_sheet",
|
|
]
|
|
assert [item["sort_order"] for item in templates] == [10, 20, 30, 40]
|
|
assert all(item["node_type"] == "generation" for item in templates)
|
|
assert all(item["status"] == "draft" for item in templates)
|
|
assert all(item["metadata"]["template"] == "character_fast_v2" for item in templates)
|
|
|
|
|
|
def test_fast_character_step_keys_are_unique() -> None:
|
|
keys = [item["node_key"] for item in FAST_CHARACTER_STEPS]
|
|
|
|
assert len(keys) == len(set(keys))
|
|
|
|
|
|
def test_gradual_workflow_starts_with_an_editable_llm_planning_node() -> None:
|
|
templates = gradual_node_templates()
|
|
|
|
assert templates[0]["node_key"] == "profile_brief"
|
|
assert templates[0]["node_type"] == "planning"
|
|
assert templates[0]["status"] == "draft"
|