Use one shared chunk duration across clips
This commit is contained in:
@@ -33,7 +33,7 @@ def test_builder_emits_one_absolute_timeline_prompt_from_clip_local_slots():
|
||||
assert "non_diegetic_music: Low cinematic pulse." in result
|
||||
|
||||
|
||||
def test_normalizer_orders_slots_and_fills_missing_clips():
|
||||
def test_normalizer_orders_slots_fills_missing_clips_and_shares_duration():
|
||||
value = normalize_sequence(
|
||||
json.dumps({"clips": [{"duration": 6, "slots": [
|
||||
{"start": 3, "end": 6, "text": "Second."},
|
||||
@@ -43,6 +43,7 @@ def test_normalizer_orders_slots_and_fills_missing_clips():
|
||||
default_seconds=4,
|
||||
)
|
||||
assert value["clips"][0]["slots"][0]["text"] == "First."
|
||||
assert value["clips"][0]["duration"] == 4.0
|
||||
assert value["clips"][1]["duration"] == 4.0
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user