From db79f192700923d8e601e276838ebb2ed57867d6 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 24 May 2026 13:44:57 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- studio/backend/tests/test_context_compaction.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/studio/backend/tests/test_context_compaction.py b/studio/backend/tests/test_context_compaction.py index aa629093d7..ccce541e84 100644 --- a/studio/backend/tests/test_context_compaction.py +++ b/studio/backend/tests/test_context_compaction.py @@ -296,9 +296,7 @@ class TestKeepRecentZero: _long("assistant", 4000), _long("user", 4000), ] - out = SlidingWindowCompact(keep_recent = 0).compact( - msgs, budget_tokens = 50 - ) + out = SlidingWindowCompact(keep_recent = 0).compact(msgs, budget_tokens = 50) roles = [m["role"] for m in out] # System + first-user only. assert roles == ["system", "user"] @@ -349,9 +347,7 @@ class TestAnchoredMultimodalPairCleanup: _long("assistant", 4000), _long("user", 4000), ] - out = SlidingWindowCompact(keep_recent = 1).compact( - msgs, budget_tokens = 50 - ) + out = SlidingWindowCompact(keep_recent = 1).compact(msgs, budget_tokens = 50) # Anchored multimodal assistant must still be there. assert any( m.get("role") == "assistant" and isinstance(m.get("content"), list)