From fe9e0806eab04754464de25d8d76f2a35c393ad6 Mon Sep 17 00:00:00 2001 From: CI Bot Date: Tue, 15 Sep 2026 21:24:33 +0000 Subject: [PATCH] style: auto-format with black + isort + ruff + prettier [skip ci-format-check] --- tests/unit/test_points_gate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/unit/test_points_gate.py b/tests/unit/test_points_gate.py index 01c21a30a..6fc8e913e 100644 --- a/tests/unit/test_points_gate.py +++ b/tests/unit/test_points_gate.py @@ -206,9 +206,10 @@ class TestPointsGateGlobalsBinding: """Toggling _pg_module._points_gate_enabled must flip what the wrapper sees (proxy pattern), not just a stale local in the decorator closure. """ - import packages.middleware.points_gate as _pg from app.api.routes import generation_tasks + import packages.middleware.points_gate as _pg + monkeypatch.setattr(_pg, "_points_gate_enabled", lambda: True) # if the wrapper bound a stale local, this would still be False assert _pg._points_gate_enabled() is True