Skip to content

Commit a63dd4f

Browse files
Update tests/test_models.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent d02b28b commit a63dd4f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,13 @@ def test_utterance_without_speaker(self):
179179
def test_utterance_without_confidence(self):
180180
"""Test utterance without confidence (no word-level data)."""
181181
utterance = TranscriptUtterance(
182+
speaker="A",
182183
text="Hello World",
183184
start=0,
184185
end=1000,
185186
)
186187
assert utterance.confidence is None
187-
assert utterance.speaker is None
188+
assert utterance.speaker == "A"
188189

189190
def test_utterance_without_speaker_and_confidence(self):
190191
"""Test utterance with only required fields (no diarization, no word-level data)."""

0 commit comments

Comments
 (0)