Move action expression sanitizer

This commit is contained in:
2026-06-27 09:20:59 +02:00
parent 3c1f6784c1
commit b46b709e8a
5 changed files with 123 additions and 90 deletions
+19
View File
@@ -733,6 +733,25 @@ def smoke_row_expression_policy() -> None:
== (None, "character_slots:disabled"),
"Row expression cast override did not honor all-slot expression disable",
)
expression_text = "Woman A has steady focus; Man A has parted lips with saliva"
context_role = "Woman A performs a handjob while Man A stands close"
_expect(
pb._sanitize_character_expression_text_for_action(expression_text, context_role, "", {})
== row_expression.sanitize_character_expression_text_for_action(expression_text, context_role, "", {})
== "Woman A has steady focus",
"Row expression action sanitizer did not remove incompatible partner expression",
)
reverse_context = "Man A has mouth pressed to her pussy while Woman A lies back"
_expect(
row_expression.sanitize_character_expression_text_for_action(
"Woman A has tongue out; Man A has focused mouth contact",
reverse_context,
"",
{},
)
== "Man A has focused mouth contact",
"Row expression action sanitizer did not remove incompatible visible-subject expression",
)
def smoke_row_item_policy() -> None: