diff --git a/studio/backend/tests/test_api_monitor.py b/studio/backend/tests/test_api_monitor.py index 93520c70d7..cfbf4bf2f6 100644 --- a/studio/backend/tests/test_api_monitor.py +++ b/studio/backend/tests/test_api_monitor.py @@ -314,6 +314,8 @@ def test_api_monitor_records_whether_the_caller_used_an_api_key(): by_id = {entry["id"]: entry for entry in monitor.snapshot(subject = "u")} assert by_id[ui]["via_api_key"] is False assert by_id[api]["via_api_key"] is True + + # ── model lifecycle rows (load / unload) ──────────────────────────── diff --git a/studio/backend/tests/test_openai_auto_switch.py b/studio/backend/tests/test_openai_auto_switch.py index a456338c56..bf4f41c818 100644 --- a/studio/backend/tests/test_openai_auto_switch.py +++ b/studio/backend/tests/test_openai_auto_switch.py @@ -4759,6 +4759,8 @@ def test_removal_of_a_path_still_only_touches_the_exact_key(monkeypatch): ) # A different file must survive its neighbour being forgotten. assert settings.get_model_override("/models/foo.gguf")["max_seq_length"] == 8192 + + def test_a_tag_that_names_no_quant_resolves_to_the_repo(monkeypatch): # A downloaded but unloaded GGUF asked for as org/model:latest missed the # resolver, so the switch path could not load it: with auto-download on it diff --git a/tests/studio/test_settings_compact_overflow_contract.py b/tests/studio/test_settings_compact_overflow_contract.py index 71b103f5b9..9f68d0b529 100644 --- a/tests/studio/test_settings_compact_overflow_contract.py +++ b/tests/studio/test_settings_compact_overflow_contract.py @@ -26,9 +26,7 @@ def test_api_monitor_entries_and_expanded_text_can_shrink(): assert '
' in source # Prompt and reply are unbounded user text: they must be height-capped, # scrollable, and wrap rather than stretch the pane. - assert ( - "max-h-72 overflow-auto whitespace-pre-wrap break-words rounded-lg bg-muted/50" in source - ) + assert "max-h-72 overflow-auto whitespace-pre-wrap break-words rounded-lg bg-muted/50" in source # A model id or path has no spaces to wrap on, so it needs break-all. assert 'className="min-w-0 break-all font-mono' in source