unsloth/studio/backend
Daniel Han b735c3a006 test(studio): consolidate PR #5061 review tests into the passthrough suite
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.
2026-04-16 18:39:10 +00:00
..
assets Add Gemma 4 model sampling defaults (#4838) 2026-04-03 13:57:15 -07:00
auth Studio: Expose openai and anthropic compatible external API end points (#4956) 2026-04-13 21:08:11 +04:00
core Merge branch 'main' into feature/tool-choice-kwarg-openai-format 2026-04-16 17:25:26 +01:00
loggers Final cleanup 2026-03-12 18:28:04 +00:00
models [pre-commit.ci] auto fixes from pre-commit.com hooks 2026-04-16 18:20:14 +00:00
plugins Bump Data Designer to 0.5.4 (removes litellm dependency) (#4569) 2026-03-25 02:01:43 -07:00
requirements change torchcodec version to 0.10.0 in extra-no-deps (#5043) 2026-04-16 19:50:57 +04:00
routes [pre-commit.ci] auto fixes from pre-commit.com hooks 2026-04-16 18:20:14 +00:00
state Final cleanup 2026-03-12 18:28:04 +00:00
storage feat: custom scan folders for GGUF model discovery (#4723) 2026-03-31 06:40:31 -07:00
tests test(studio): consolidate PR #5061 review tests into the passthrough suite 2026-04-16 18:39:10 +00:00
utils chore: switch helper and no-cache fallback to Gemma (#5066) 2026-04-16 22:27:30 +04:00
__init__.py Final cleanup 2026-03-12 18:28:04 +00:00
_platform_compat.py Fix Studio crash on Anaconda/conda-forge Python (#4484) 2026-03-22 05:36:55 -07:00
colab.py Fix/studio colab button message: Add fallback message for Colab Studio button when proxy URL fails (#4866) 2026-04-05 21:57:45 -07:00
main.py Chat first onboarding (#5063) 2026-04-16 09:58:10 -07:00
run.py Studio: Expose openai and anthropic compatible external API end points (#4956) 2026-04-13 21:08:11 +04:00
startup_banner.py studio: unify Windows installer/setup logging style, verbosity controls, and startup messaging (#4651) 2026-03-30 00:53:23 -07:00