Orchestrata Ultimate › Tests › Reference › knowledge_graph › test_server

Tests reference — tests/knowledge_graph/test_server.py

Module of tests/knowledge_graph, split out because the directory page would be too large.

Prose pending.

tests/knowledge_graph/test_server.py

source · 5 tests · 276 lines

Tests for orchestrata_ultimate.knowledge_graph.server (KG gRPC entrypoint).

Covers: knowledge_graph.server

Kind Name Line Description
class TestServeLifecycle 167 _serve(): binds the real port, serves, then shuts down gracefully.
method TestServeLifecycle.test_serve_binds_port_and_returns_after_sigterm 170
method TestServeLifecycle.test_serve_binds_port_and_returns_after_sigint 186 SIGINT is registered in the same loop as SIGTERM — this drives an
class TestMainEntryPoint 203 main(): the asyncio.run(_serve()) wrapper.
method TestMainEntryPoint.test_main_runs_serve_to_completion_and_returns_none 206 The success path: main() drives _serve() for real and
method TestMainEntryPoint.test_main_argv_defaults_to_none 222 argv is accepted for CLI compatibility but unused; confirm the
method TestMainEntryPoint.test_main_raises_and_exits_zero_on_early_keyboard_interrupt 236 The defensive except KeyboardInterrupt: ... sys.exit(0) branch: