The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
test: assert integration collection by summary, not exit code
Yuneng Jianga1bf9487311a
diff --git a/tests/code_coverage_tests/test_integration_suite_imports.py b/tests/code_coverage_tests/test_integration_suite_imports.pyindex ed299e7ce5a..9cf2c9be394 100644--- a/tests/code_coverage_tests/test_integration_suite_imports.py+++ b/tests/code_coverage_tests/test_integration_suite_imports.py@@ -31,9 +31,14 @@ def _collect_without_injected_pythonpath(target: str) -> subprocess.CompletedProdef _assert_collected(result: subprocess.CompletedProcess[str], target: str) -> None:- assert result.returncode == 0, f"{target} exited {result.returncode}\n{result.stdout}\n{result.stderr}"+ # The exit code cannot carry this: tests/integration/conftest.py raises a UsageError+ # under GITHUB_ACTIONS to keep these contracts owned by CircleCI, so a healthy+ # collection and a failed import both exit 4. Only the summary line separates them.match: Final = COLLECTED_COUNT.search(result.stdout)- assert match is not None, f"{target} reported no collection summary\n{result.stdout}"+ assert match is not None, (+ f"{target} never reached a collection summary, so its imports did not resolve\n"+ f"{result.stdout}\n{result.stderr}"+ )assert int(match.group(1)) > 0, f"{target} collected nothing, so nothing was verified\n{result.stdout}"