Fix OpenAI reference image home expansion test on Windows

This commit is contained in:
sbyinin
2026-06-19 17:16:09 +08:00
committed by Xubin Ren
parent 44f7bbae50
commit 6da56f3574
+1
View File
@@ -830,6 +830,7 @@ async def test_openai_reference_images_expand_user_paths(
ref = tmp_path / "ref.png"
ref.write_bytes(PNG_BYTES)
monkeypatch.setenv("HOME", str(tmp_path))
monkeypatch.setenv("USERPROFILE", str(tmp_path))
fake = FakeClient(FakeResponse({"data": [{"b64_json": RAW_B64}]}))
client = OpenAIImageGenerationClient(
api_key="sk-openai-test",