test(byterover): write the fixture .env with an explicit utf-8 encoding

This commit is contained in:
teknium1
2026-09-13 13:52:00 -07:00
committed by Teknium
parent 71cebc6348
commit 62a56f441c
@@ -20,7 +20,7 @@ def two_profiles(tmp_path, monkeypatch):
root = tmp_path / ".hermes"
prof_b = root / "profiles" / "b"
prof_b.mkdir(parents=True)
(root / ".env").write_text("BRV_API_KEY=DEFAULT-PROFILE-KEY\nHERMES_MODEL=default-model\n")
(root / ".env").write_text("BRV_API_KEY=DEFAULT-PROFILE-KEY\nHERMES_MODEL=default-model\n", encoding="utf-8")
monkeypatch.setenv("HERMES_HOME", str(root))
monkeypatch.setenv("BRV_API_KEY", "DEFAULT-PROFILE-KEY") # the gateway loaded default's .env at boot
monkeypatch.setenv("HERMES_MODEL", "default-model")