Skip to content

Your lightweight open-source personal agent.

Fix OpenAI reference image home expansion test on Windows

sbyinin6da56f357483
diff --git a/tests/providers/test_image_generation.py b/tests/providers/test_image_generation.py
index fb1109e06..3e83b348b 100644
--- a/tests/providers/test_image_generation.py
+++ b/tests/providers/test_image_generation.py
@@ -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",