GRM-73: feat: adopt per-test timing quality gate from devx 0.7.0

This commit is contained in:
2026-06-23 16:51:52 +00:00
parent 6032a07038
commit c5d8cbef5a
6 changed files with 13 additions and 10 deletions
+2 -1
View File
@@ -556,7 +556,8 @@ class TestVikunjaClient:
json={"done": True},
)
def test_http_error_raises_api_error(self) -> None:
@patch("gitea_runner_manager.api_clients.time.sleep")
def test_http_error_raises_api_error(self, mock_sleep: MagicMock) -> None:
client = VikunjaClient("https://work.example.com", "tok")
mock_resp = MagicMock()
mock_resp.raise_for_status.side_effect = _mock_http_error(http.HTTPStatus.INTERNAL_SERVER_ERROR, "server error")