mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-08-06 17:38:35 +00:00
Fix OpenAI reference image home expansion test on Windows
This commit is contained in:
parent
44f7bbae50
commit
6da56f3574
@ -830,6 +830,7 @@ async def test_openai_reference_images_expand_user_paths(
|
|||||||
ref = tmp_path / "ref.png"
|
ref = tmp_path / "ref.png"
|
||||||
ref.write_bytes(PNG_BYTES)
|
ref.write_bytes(PNG_BYTES)
|
||||||
monkeypatch.setenv("HOME", str(tmp_path))
|
monkeypatch.setenv("HOME", str(tmp_path))
|
||||||
|
monkeypatch.setenv("USERPROFILE", str(tmp_path))
|
||||||
fake = FakeClient(FakeResponse({"data": [{"b64_json": RAW_B64}]}))
|
fake = FakeClient(FakeResponse({"data": [{"b64_json": RAW_B64}]}))
|
||||||
client = OpenAIImageGenerationClient(
|
client = OpenAIImageGenerationClient(
|
||||||
api_key="sk-openai-test",
|
api_key="sk-openai-test",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user