We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad4a7eb commit 2ca3d56Copy full SHA for 2ca3d56
1 file changed
tests/test_ui.py
@@ -117,11 +117,12 @@ def test_import_requires_file_or_path(self, client):
117
resp = client.post("/api/models/import", json={})
118
assert resp.status_code == 400
119
120
- def test_import_returns_507_when_storage_is_full(self, client):
+ def test_import_returns_507_when_storage_is_full(self, client, tmp_path):
121
from io import BytesIO
122
123
data = {"file": (BytesIO(b"fake"), "model.gguf")}
124
with patch("ui.app._ui_audit.append") as mock_append, \
125
+ patch("ui.app.QUARANTINE_DIR", tmp_path / "quarantine"), \
126
patch(
127
"werkzeug.datastructures.file_storage.FileStorage.save",
128
side_effect=OSError(errno.ENOSPC, "No space left on device"),
0 commit comments