fix: convert AUTH_FILE to getter and disable rate limiting in test suite to fix CI failures
Deploy Dashboard (Dev) / deploy-dev (push) Successful in 5m40s
Run Tests / Backend Tests (push) Failing after 7m2s
Run Tests / Frontend Tests (push) Failing after 4m45s
Run Tests / Test Summary (push) Failing after 1m12s

This commit is contained in:
Gan, Jimmy
2026-04-05 01:40:58 +08:00
parent 1b07246d0d
commit 364b4f70d1
2 changed files with 9 additions and 5 deletions
+2
View File
@@ -148,6 +148,8 @@ def test_app(mock_config, temp_auth_file, temp_rbac_file, mock_docker_client):
# Patch Docker client before importing main
with patch("docker.DockerClient", return_value=mock_docker_client):
from main import app
# Disable rate limiting during tests to avoid 429 errors
app.state.limiter.enabled = False
client = TestClient(app)
yield client