Orchestrata Ultimate › Tests › Reference › scripts › test_graph_query

Tests reference — tests/scripts/test_graph_query.py

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

Prose pending.

tests/scripts/test_graph_query.py

source · 32 tests · 572 lines

Tests for scripts/graph_query.py -- the CLI for querying the operational

Kind Name Line Description
function test_id 53 Unique per-test project id (matches tests/knowledge_graph/conftest.py).
class TestBuildParser 158
method TestBuildParser.test_default_uri_user_password_are_none 159
method TestBuildParser.test_uri_user_password_overrides 165
method TestBuildParser.test_methods_without_tests_default_limit 181
method TestBuildParser.test_dead_code_limit_override 186
method TestBuildParser.test_deep_inheritance_default_limit 190
method TestBuildParser.test_untested_entrypoints_default_limit 194
method TestBuildParser.test_class_methods_requires_class_flag 198
method TestBuildParser.test_class_methods_missing_required_flag_exits 202
method TestBuildParser.test_callers_requires_method_flag 206
method TestBuildParser.test_sync_tests_requires_ast_flag 210
method TestBuildParser.test_sync_tests_missing_project_flag_exits 217
method TestBuildParser.test_missing_command_is_required 223
method TestBuildParser.test_unknown_command_exits 227
class TestMakeSyncer 237
method TestMakeSyncer.test_uses_explicit_args 238
method TestMakeSyncer.test_falls_back_to_env_when_args_unset 255
class TestReadOnlyAdvisoryQueries 268
method TestReadOnlyAdvisoryQueries.test_methods_without_tests_real_graph 269
method TestReadOnlyAdvisoryQueries.test_dead_code_real_graph 279
method TestReadOnlyAdvisoryQueries.test_deep_inheritance_real_graph 287 Seeds its OWN namespaced chain: asserting on pre-existing live-graph
method TestReadOnlyAdvisoryQueries.test_untested_entrypoints_real_graph 321
class TestCmdClassMethods 335
method TestCmdClassMethods.test_prints_async_and_sync_methods 336
method TestCmdClassMethods.test_no_such_class_prints_zero_total 348
class TestCmdCallers 363
method TestCmdCallers.test_no_callers_prints_zero_total 364
method TestCmdCallers.test_with_a_real_caller_edge 373
class TestCmdSyncTests 411
method TestCmdSyncTests.test_creates_test_node_and_tested_by_edge 412
method TestCmdSyncTests.test_missing_ast_file_raises 468
class TestMain 482
method TestMain.test_success_path_exits_zero 483
method TestMain.test_unreachable_uri_exits_one_with_error 490
class TestModuleBootstrap 503
method TestModuleBootstrap.test_graph_syncer_is_reachable_from_loaded_module 504
class TestDotenvBootstrap 517 main() must load .env before any endpoint is resolved.
method TestDotenvBootstrap.test_load_env_populates_environ_from_dotenv 531
method TestDotenvBootstrap.test_load_env_does_not_clobber_an_explicit_export 549 An explicitly exported value must win over .env.
method TestDotenvBootstrap.test_main_calls_load_env 567 Wiring: the bootstrap must actually be invoked by main().