[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
a3f202a0de
commit
b6cb756811
3 changed files with 5 additions and 3 deletions
|
|
@ -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) ────────────────────────────
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -26,9 +26,7 @@ def test_api_monitor_entries_and_expanded_text_can_shrink():
|
|||
assert '<section className="flex min-w-0 flex-col gap-1.5">' 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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue