Orchestrata Ultimate › Tests › Reference › scripts › test_kg_schema

Tests reference — tests/scripts/test_kg_schema.py

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

Prose pending.

tests/scripts/test_kg_schema.py

source · 15 tests · 324 lines

Tests for scripts/kg_schema.py — the SPEC-106 FR-001 canonical-schema CLI.

Covers: core.graph_factory, knowledge_graph.canonical_schema, knowledge_graph.schema, core.graph/ (package)

Kind Name Line Description
function test_id 63 Unique per-test identifier (matches tests/knowledge_graph/conftest.py).
class TestBuildParser 81
method TestBuildParser.test_check_defaults 82
method TestBuildParser.test_apply_defaults_dry_run_false 89
method TestBuildParser.test_apply_dry_run_flag 94
method TestBuildParser.test_uri_user_password_overrides 98
method TestBuildParser.test_missing_command_is_required 114
class TestDriverFromArgs 124
method TestDriverFromArgs.test_explicit_uri_wins_over_env 125
method TestDriverFromArgs.test_falls_back_to_env_when_no_override 140
method TestDriverFromArgs.test_no_hardcoded_default_when_nothing_set 153 An unset environment must NOT resolve to localhost.
class TestCmdApplyDryRun 173
method TestCmdApplyDryRun.test_dry_run_prints_full_canon_and_returns_zero 174
class TestCmdApplyRealDriver 199
method TestCmdApplyRealDriver.test_apply_runs_test_only_ddl_through_real_wiring 200
class TestCmdCheck 249
method TestCmdCheck.test_check_against_real_shared_graph_conforms 250
class TestMain 280
method TestMain.test_main_unreachable_uri_exits_nonzero 281
method TestMain.test_main_dry_run_apply_exits_zero 288
class TestSysPathBootstrap 299
method TestSysPathBootstrap.test_inserts_repo_src_when_not_already_on_path 300 Subprocess proof, not an in-process one: a genuinely fresh