The 10 test_pr5061_r2_*.py files at repo root tests/ had three issues: wrong directory (studio tests live at studio/backend/tests/), PR number baked into filenames, and two files (anthropic_nonstream_502, anthropic_tool_choice_warn) duplicated coverage already in Roland's TestFriendlyErrorHttpx / TestAnthropicToolChoiceToOpenAI. A third file (nonstream_upstream_log) pinned logger-call shape, which is brittle diagnostic noise. Dropped the three low-value files and merged the rest into studio/backend/tests/test_openai_tool_passthrough.py as generic classes: - TestLlamaAuthHeaders - TestOpenAIMessagesForPassthrough - TestOpenAIChatCompletionsToolGuards - TestAnthropicEnableToolsToolChoiceConflict - TestOpenAIPassthroughNonStreaming (verbatim body + httpx 502 mapping) - TestOpenAIPassthroughStreamVerbatim - TestOpenAIPassthroughStreamErrorTermination Test count: 65 tests across 8 Test* classes. Net -316 lines. |
||
|---|---|---|
| .. | ||
| python | ||
| qlora | ||
| saving | ||
| sh | ||
| studio/install | ||
| utils | ||
| __init__.py | ||
| run_all.sh | ||
| test_cli_export_unpacking.py | ||
| test_get_model_name.py | ||
| test_loader_glob_skip.py | ||
| test_model_registry.py | ||
| test_raw_text.py | ||