unsloth/tests
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
..
python Add configurable PyTorch mirror via UNSLOTH_PYTORCH_MIRROR env var (#5024) 2026-04-15 11:39:11 +04:00
qlora Revert "[pre-commit.ci] auto fixes from pre-commit.com hooks" 2025-12-01 07:24:58 -08:00
saving Add regression test for shell injection fix in GGML conversion (#4773) 2026-04-02 00:10:47 -07:00
sh Add configurable PyTorch mirror via UNSLOTH_PYTORCH_MIRROR env var (#5024) 2026-04-15 11:39:11 +04:00
studio/install Add ROCm test suite for PR #4720 (#4824) 2026-04-11 04:44:13 -07:00
utils feat: Add cactus QAT scheme support (#4679) 2026-04-15 07:40:03 -07:00
__init__.py Qwen 3, Bug Fixes (#2445) 2025-04-30 22:38:39 -07:00
run_all.sh fix: add tokenizers to no-torch deps and TORCH_CONSTRAINT for arm64 macOS py313+ (#4748) 2026-04-01 06:12:17 -07:00
test_cli_export_unpacking.py studio: stream export worker output into the export dialog (#4897) 2026-04-14 08:55:43 -07:00
test_get_model_name.py feat: Add support for OLMo-3 model (#4678) 2026-04-15 07:39:11 -07:00
test_loader_glob_skip.py Add unit tests for HfFileSystem glob skip guard (#4854) 2026-04-06 08:54:36 -07:00
test_model_registry.py Revert "[FIX] Vllm guided decoding params (#3662)" 2025-12-01 05:43:45 -08:00
test_raw_text.py fix: check find() return value before adding offset in try_fix_tokenizer (#4923) 2026-04-09 06:15:46 -07:00