From 3a8faeb31d32ccab6fc7bc50544c2cac1f52abb3 Mon Sep 17 00:00:00 2001 From: CI Bot Date: Fri, 4 Sep 2026 15:34:08 +0000 Subject: [PATCH] style: auto-format with black + isort + prettier [skip ci-format-check] --- tests/unit/test_duplicate_rate_scope.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/tests/unit/test_duplicate_rate_scope.py b/tests/unit/test_duplicate_rate_scope.py index ad039d7d2..4cf6f02ce 100644 --- a/tests/unit/test_duplicate_rate_scope.py +++ b/tests/unit/test_duplicate_rate_scope.py @@ -191,18 +191,23 @@ class TestComputeDuplicateRateFormula: deduplicator = VideoDeduplicator() # 10 frames with varied phashes (2 unique) → not bad fingerprint # All close in hamming distance to existing → frame_match_rate = 1.0 - phashes = (["aa00aa00aa00aa00", "ab00ab00ab00ab00"] * 5) + phashes = ["aa00aa00aa00aa00", "ab00ab00ab00ab00"] * 5 fingerprint = _make_fingerprint(md5="new", phashes=phashes, duration_ms=20000) session = MagicMock() # 5 unique phashes to pass _is_bad_fingerprint check (PR #1688) existing = _make_video( "vid2", - {"md5": "other", "keyframe_phashes": [ - "aa00aa00aa00aa00", "ab00ab00ab00ab00", - "ac00ac00ac00ac00", "aa10aa10aa10aa10", - "ba00ba00ba00ba00", - ]}, + { + "md5": "other", + "keyframe_phashes": [ + "aa00aa00aa00aa00", + "ab00ab00ab00ab00", + "ac00ac00ac00ac00", + "aa10aa10aa10aa10", + "ba00ba00ba00ba00", + ], + }, ) with patch("video_processing.dedup.SQLAlchemyGeneratedVideoRepository") as MockRepo: -- 2.54.0