Orchestrata Ultimate › Tests › Reference › scripts › test_sync_ast_to_graph
Tests reference — tests/scripts/test_sync_ast_to_graph.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_sync_ast_to_graph.py
source · 34 tests · 629 lines
Tests for scripts/sync_ast_to_graph.py -- the CLI wrapper for the (already
Covers: knowledge_graph.canonical_schema
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_id |
49 | Unique per-test project id (matches tests/knowledge_graph/conftest.py). |
| class | TestBuildParser |
136 | |
| method | TestBuildParser.test_global_connection_flags_default_none |
137 | |
| method | TestBuildParser.test_global_connection_flags_overrides |
143 | |
| method | TestBuildParser.test_database_and_no_auth_default_off |
151 | |
| method | TestBuildParser.test_database_and_no_auth_overrides |
156 | |
| method | TestBuildParser.test_schema_subcommand |
163 | |
| method | TestBuildParser.test_full_requires_ast_and_project |
167 | |
| method | TestBuildParser.test_full_packages_from_optional_override |
175 | |
| method | TestBuildParser.test_full_missing_required_ast_exits |
189 | |
| method | TestBuildParser.test_map_requires_mapping_defaults |
193 | |
| method | TestBuildParser.test_map_source_target_overrides |
199 | |
| method | TestBuildParser.test_incremental_requires_ast_project_modules |
214 | |
| method | TestBuildParser.test_stats_subcommand |
228 | |
| method | TestBuildParser.test_verify_requires_project |
232 | |
| method | TestBuildParser.test_verify_missing_project_exits |
236 | |
| method | TestBuildParser.test_missing_command_is_required |
240 | |
| class | TestMakeSyncer |
250 | |
| method | TestMakeSyncer.test_uses_explicit_args |
251 | |
| method | TestMakeSyncer.test_database_and_no_auth_reach_the_syncer |
260 | Step 3.3 targets orchgraph, which serves several databases from one |
| method | TestMakeSyncer.test_defaults_leave_database_unset_and_auth_on |
270 | Omitting the flags must not change the Neo4j path: database None |
| class | TestCmdSchema |
284 | |
| method | TestCmdSchema.test_schema_real_run_is_idempotent |
285 | |
| class | TestCmdFull |
298 | |
| method | TestCmdFull.test_missing_ast_file_returns_one |
299 | |
| method | TestCmdFull.test_real_full_sync_without_packages_from |
309 | |
| method | TestCmdFull.test_real_full_sync_with_packages_from_missing_path |
340 | |
| method | TestCmdFull.test_real_full_sync_with_packages_from_present_path |
366 | |
| class | TestCmdMap |
401 | |
| method | TestCmdMap.test_missing_mapping_file_returns_one |
402 | |
| method | TestCmdMap.test_real_maps_to_edge_created |
410 | |
| class | TestCmdIncremental |
466 | |
| method | TestCmdIncremental.test_missing_ast_file_returns_one |
467 | |
| method | TestCmdIncremental.test_blank_modules_list_returns_one |
485 | |
| method | TestCmdIncremental.test_real_incremental_resync_of_one_module |
504 | |
| class | TestCmdStats |
562 | |
| method | TestCmdStats.test_stats_real_graph |
563 | |
| class | TestCmdVerify |
578 | |
| method | TestCmdVerify.test_verify_unknown_project_fails |
579 | |
| method | TestCmdVerify.test_verify_real_synced_project_passes |
589 | |
| class | TestMain |
618 | |
| method | TestMain.test_success_path_exits_zero |
619 | |
| method | TestMain.test_unreachable_uri_exits_one_with_error |
624 |