fix: convert AUTH_FILE to getter and disable rate limiting in test suite to fix CI failures
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user