Files
VoiceStudio/tests/test_reference_transcript_emotion.py
debpalash fc47cb40c2 fix: review findings on the #4372–#4389 batch
- insertionSlot: falls back when the next segment has no finite start, and
  rounds a custom threshold to milliseconds before comparing (#4389).
- New test modules resolve app code at test time (#4380, #4382, #4383).
2026-11-23 13:05:01 +05:30

13 lines
540 B
Python

"""Saved takes pair their audio with spoken text."""
import pytest
@pytest.mark.parametrize("marker", ["[emotion:quiet]", "[EMOTION:quiet]", "[emotion:]", "[emotion:quiet\nand tense]"])
def test_saved_take_transcript_keeps_reactions_and_omits_emotion_directions(marker):
import importlib
take_reference_transcript = importlib.import_module("services.reference_transcript").take_reference_transcript # resolved at test time
assert take_reference_transcript(f"{marker} Hello [laughter] there.") == "Hello [laughter] there."