mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-27 16:22:20 +01:00
Use explicit editor endpoints in backend regression fixtures
This commit is contained in:
@@ -989,11 +989,12 @@ def test_editor_agent_models_route_shape(client):
|
|||||||
assert m["source"] in ("local", "hosted")
|
assert m["source"] in ("local", "hosted")
|
||||||
|
|
||||||
|
|
||||||
def test_list_editor_agent_models_includes_base_url():
|
def test_list_editor_agent_models_includes_base_url(monkeypatch):
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
import src.editor_agent_model as eam
|
import src.editor_agent_model as eam
|
||||||
|
|
||||||
|
monkeypatch.setattr(eam, "local_bases", lambda: ["http://editor.test/v1"])
|
||||||
models = asyncio.run(eam.list_editor_agent_models(None))
|
models = asyncio.run(eam.list_editor_agent_models(None))
|
||||||
assert any(m["source"] == "local" for m in models), models
|
assert any(m["source"] == "local" for m in models), models
|
||||||
for m in models:
|
for m in models:
|
||||||
@@ -1134,6 +1135,7 @@ def test_plan_special_recolor_overrides_a_model_plan(client):
|
|||||||
def test_self_check_endpoint_parses_retry(client, monkeypatch):
|
def test_self_check_endpoint_parses_retry(client, monkeypatch):
|
||||||
import src.editor_agent_model as eam
|
import src.editor_agent_model as eam
|
||||||
|
|
||||||
|
monkeypatch.setattr(eam, "local_bases", lambda: ["http://editor.test/v1"])
|
||||||
async def _retry(*a, **k): # noqa: ANN001
|
async def _retry(*a, **k): # noqa: ANN001
|
||||||
return "RETRY: brighten the subject"
|
return "RETRY: brighten the subject"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user