feat: rename CF_ORCH_URL to GPU_SERVER_URL for self-hoster clarity #14

Merged
pyr0ball merged 2 commits from fix/gpu-server-url-rename into main 2026-07-10 19:34:20 -07:00
Showing only changes of commit 10cde880b6 - Show all commits

View file

@ -9,6 +9,7 @@ environment restored so later tests see normal module state.
from __future__ import annotations
import importlib
import os
import pytest
@ -18,6 +19,13 @@ import app.config as config
@pytest.fixture(autouse=True)
def _restore_config_module():
yield
# config.py's write-back (`os.environ["CF_ORCH_URL"] = GPU_SERVER_URL`) is a
# module-level side effect monkeypatch never sees, so it can't auto-revert
# it — without this explicit cleanup, a value set here leaks into every
# other test in the session (e.g. shelve tests' get_llm_config() checks).
os.environ.pop("CF_ORCH_URL", None)
os.environ.pop("GPU_SERVER_URL", None)
os.environ.pop("CF_LICENSE_KEY", None)
importlib.reload(config)