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. |
||
|---|---|---|
| .. | ||
| backend | ||
| frontend | ||
| __init__.py | ||
| install_llama_prebuilt.py | ||
| install_python_stack.py | ||
| LICENSE.AGPL-3.0 | ||
| setup.bat | ||
| setup.ps1 | ||
| setup.sh | ||
| Unsloth_Studio_Colab.ipynb | ||