MCPcopy
hub / github.com/vectorize-io/hindsight / shared_server

Function shared_server

hindsight-all/tests/test_server_integration.py:43–53  ·  view source on GitHub ↗

Shared server instance for all tests (session-scoped). This allows tests to run in parallel by sharing the same pg0 instance, while using different bank_ids to avoid data conflicts.

(llm_config)

Source from the content-addressed store, hash-verified

41
42@pytest.fixture(scope="session")
43def shared_server(llm_config):
44 """
45 Shared server instance for all tests (session-scoped).
46
47 This allows tests to run in parallel by sharing the same pg0 instance,
48 while using different bank_ids to avoid data conflicts.
49 """
50 server = HindsightServer(db_url="pg0", **llm_config)
51 server.start()
52 yield server
53 server.stop()
54
55
56@pytest.fixture

Callers

nothing calls this directly

Calls 3

startMethod · 0.95
stopMethod · 0.95
HindsightServerClass · 0.90

Tested by

no test coverage detected