Share formatter field label policy
This commit is contained in:
@@ -882,6 +882,27 @@ def smoke_formatter_input_policy() -> None:
|
||||
formatter_input.row_value({"prompt": source_row["prompt"]}, "scene_text", ("Setting",)) == "quiet studio",
|
||||
"Row value prompt fallback changed",
|
||||
)
|
||||
_expect(
|
||||
krea_formatter.PROMPT_FIELD_LABELS is formatter_input.DEFAULT_PROMPT_FIELD_LABELS,
|
||||
"Krea formatter field-label inventory should delegate to formatter_input",
|
||||
)
|
||||
_expect(
|
||||
sdxl_formatter.PROMPT_FIELD_LABELS is formatter_input.DEFAULT_PROMPT_FIELD_LABELS,
|
||||
"SDXL formatter field-label inventory should delegate to formatter_input",
|
||||
)
|
||||
_expect(
|
||||
caption_naturalizer.PROMPT_FIELD_LABELS is formatter_input.DEFAULT_PROMPT_FIELD_LABELS,
|
||||
"Caption formatter field-label inventory should delegate to formatter_input",
|
||||
)
|
||||
labeled_prompt = "Sexual scene: close-contact action. Camera control: side view. Composition: centered frame."
|
||||
_expect(
|
||||
formatter_input.prompt_field(labeled_prompt, "Sexual scene") == "close-contact action",
|
||||
"Shared formatter field-label inventory lost Sexual scene parsing",
|
||||
)
|
||||
_expect(
|
||||
formatter_input.prompt_field(labeled_prompt, "Camera control") == "side view",
|
||||
"Shared formatter field-label inventory lost Camera control parsing",
|
||||
)
|
||||
|
||||
_expect(krea_formatter._clean("a b , c") == formatter_input.clean_text("a b , c"), "Krea clean helper is not delegated")
|
||||
_expect(sdxl_formatter._clean("a b , c") == formatter_input.clean_text("a b , c"), "SDXL clean helper is not delegated")
|
||||
|
||||
Reference in New Issue
Block a user