From 7d0f2be9da4be2a12f9c1a89f32b8241700e3095 Mon Sep 17 00:00:00 2001 From: Nixevol Date: Sun, 25 Oct 2026 07:22:47 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E4=B8=8B=E8=BD=BD=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=94=B9=E7=94=A8=E6=9C=AC=E6=9C=BA=E5=9C=B0?= =?UTF-8?q?=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/tests/test_storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/tests/test_storage.py b/backend/tests/test_storage.py index 7b8e87d..7c3b96d 100644 --- a/backend/tests/test_storage.py +++ b/backend/tests/test_storage.py @@ -380,7 +380,7 @@ def test_download_api_paths_settings_and_delete(tmp_path: Path, monkeypatch): monkeypatch.setattr(state, "client", _SilentClient()) monkeypatch.setattr(state, "user", {"loginId": "a"}) monkeypatch.setattr(state, "expired", False) - with TestClient(app) as client: + with TestClient(app, base_url="http://127.0.0.1") as client: meta = client.get("/api/download/meta") assert meta.status_code == 200 assert meta.json()["defaultOutputDir"] == str(downloads)