Naturalize caption character expressions

This commit is contained in:
2026-06-27 21:30:23 +02:00
parent 4de00bcc9d
commit 4f97057fc4
3 changed files with 77 additions and 5 deletions
+21
View File
@@ -4262,6 +4262,27 @@ def smoke_caption_metadata_routes() -> None:
caption_naturalizer._configured_cast_from_row,
"metadata(configured_cast)",
)
configured_character_expression = _fixture_hardcore_row(
character_expression_text="Woman A has flushed focus; Man A has concentrated stare",
)
character_expression_route = caption_metadata_routes.configured_cast_from_row_result(
caption_naturalizer._caption_metadata_route_request(configured_character_expression, "balanced", False),
caption_naturalizer._caption_metadata_route_dependencies(),
)
_expect(character_expression_route is not None, "Caption configured-cast character expression row did not match")
assert character_expression_route is not None
_expect(
"with Woman A has" not in character_expression_route.prose,
"Caption configured-cast prose kept old character-expression grammar",
)
_expect(
"Woman A with flushed focus" in character_expression_route.prose,
"Caption configured-cast prose did not naturalize Woman A expression",
)
_expect(
"Man A with concentrated stare" in character_expression_route.prose,
"Caption configured-cast prose did not naturalize Man A expression",
)
configured_axis_only = _fixture_hardcore_row(
item="generic configured adult action",
role_graph="",