mirror of
https://github.com/mcloh/codex-chatgpt-mcp-proxy.git
synced 2026-11-05 21:34:11 +00:00
Implement durable OAuth MCP bridge with local Codex worker and deployment guides
This commit is contained in:
23
tests/conftest.py
Normal file
23
tests/conftest.py
Normal file
@@ -0,0 +1,23 @@
|
||||
import pytest
|
||||
from codex_chatgpt_mcp_proxy.config import ServerConfig
|
||||
from codex_chatgpt_mcp_proxy.store import Store
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def config(tmp_path):
|
||||
return ServerConfig(
|
||||
database=str(tmp_path / "server.sqlite"),
|
||||
mode="development",
|
||||
worker_token="w" * 40,
|
||||
dev_mcp_token="m" * 40,
|
||||
)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def store(config):
|
||||
return Store(config)
|
||||
|
||||
|
||||
def claim(store):
|
||||
store.register("home", "1", "test", ["demo"])
|
||||
return store.claim("home")
|
||||
Reference in New Issue
Block a user