Skip to content

Commit dfc0f23

Browse files
committed
remove unecessary mutation test
1 parent 3474f20 commit dfc0f23

1 file changed

Lines changed: 0 additions & 28 deletions

File tree

src/summary/tests/unit/test_user_assign.py

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
"""Tests for the speaker-to-user assignment service."""
22

3-
import copy
4-
53
from summary.core.user_assign import (
64
AssignmentResult,
75
Interval,
@@ -457,32 +455,6 @@ def test_unassigned_speakers_unchanged(self):
457455
result = assignment.apply(diarization)
458456
assert result["segments"][0]["speaker"] == "SPEAKER_02"
459457

460-
def test_does_not_mutate_original(self):
461-
"""The original diarization dict is not modified."""
462-
diarization = {
463-
"segments": [
464-
{
465-
"start": 1.0,
466-
"end": 3.0,
467-
"speaker": "SPEAKER_00",
468-
"words": [
469-
{"word": "Hi", "speaker": "SPEAKER_00"},
470-
],
471-
},
472-
],
473-
"word_segments": [
474-
{"word": "Hi", "speaker": "SPEAKER_00"},
475-
],
476-
}
477-
original = copy.deepcopy(diarization)
478-
assignment = AssignmentResult(
479-
assignments=[
480-
SpeakerAssignment("SPEAKER_00", "id-a", "Alice", 0.9),
481-
],
482-
)
483-
assignment.apply(diarization)
484-
assert diarization == original
485-
486458
def test_preserves_extra_keys(self):
487459
"""Non-segment keys in diarization are preserved."""
488460
diarization = {

0 commit comments

Comments
 (0)