diff --git a/tests/run_agent/test_percentage_clamp.py b/tests/run_agent/test_percentage_clamp.py index fcb66c5bbbf..ca407ef8dda 100644 --- a/tests/run_agent/test_percentage_clamp.py +++ b/tests/run_agent/test_percentage_clamp.py @@ -81,10 +81,12 @@ class TestSourceLinesAreClamped: return f.read() def test_gateway_run_clamped(self): - src = self._read_file("gateway/run.py") + # The /usage stats handler was extracted from gateway/run.py into + # gateway/slash_commands.py (god-file decomposition Phase 3b). + src = self._read_file("gateway/slash_commands.py") # Check that the stats handler has min(100, ...) assert "min(100, ctx.last_prompt_tokens" in src, ( - "gateway/run.py stats pct is not clamped with min(100, ...)" + "gateway/slash_commands.py stats pct is not clamped with min(100, ...)" ) def test_cli_clamped(self):