fix(scenes): restore cinema seat controls and ordered romantic lighting
This commit is contained in:
@@ -520,20 +520,23 @@ def test_romantic_and_mid_autumn_require_decorative_light_actions(
|
||||
context["scene_semantics"] = semantics
|
||||
schema = build_scene_output_schema(context)
|
||||
|
||||
assert required == [
|
||||
romantic_refs = [
|
||||
"ir:flash-open", "ir:flash-red", "ir:strip-open", "ir:strip-red", "ir:ambient-open",
|
||||
]
|
||||
assert required == (romantic_refs if "浪漫" in mode_name else [
|
||||
"ir:flash-open",
|
||||
"ir:strip-open",
|
||||
]
|
||||
])
|
||||
assert scene_required_peripheral_refs(
|
||||
mode_name,
|
||||
context,
|
||||
include_default_bundle=True,
|
||||
) == [
|
||||
) == (romantic_refs if "浪漫" in mode_name else [
|
||||
"ir:flash-open",
|
||||
"ir:ambient-open",
|
||||
"ir:strip-open",
|
||||
]
|
||||
assert schema["properties"]["requests"]["maxItems"] == 18
|
||||
])
|
||||
assert schema["properties"]["requests"]["maxItems"] == 20 - len(required)
|
||||
if "中秋" in mode_name:
|
||||
assert semantics["family"] == "festival_celebration"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user