Orchestrata Ultimate › Tests › Reference › knowledge_graph › test_sync_queries
Tests reference — tests/knowledge_graph/test_sync_queries.py
Module of tests/knowledge_graph, split out because the directory page would be too large.
Prose pending.
tests/knowledge_graph/test_sync_queries.py
source · 26 tests · 475 lines
Tests for QueryMixin (
_sync_queries.py) — GraphSyncer's read-only
Covers: knowledge_graph.sync, core.graph/ (package)
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestNotConnectedRaises |
79 | Every read method raises RuntimeError when _repo is falsy. |
| method | TestNotConnectedRaises.test_query_methods_without_tests_raises |
82 | |
| method | TestNotConnectedRaises.test_query_dead_code_raises |
87 | |
| method | TestNotConnectedRaises.test_query_deep_inheritance_raises |
91 | |
| method | TestNotConnectedRaises.test_query_untested_entrypoints_raises |
95 | |
| method | TestNotConnectedRaises.test_query_class_methods_raises |
99 | |
| method | TestNotConnectedRaises.test_query_callers_raises |
103 | |
| method | TestNotConnectedRaises.test_get_stats_raises |
107 | |
| method | TestNotConnectedRaises.test_verify_raises |
111 | |
| class | TestQueryExceptionHandling |
119 | The six query_* methods catch driver errors and return [] rather |
| method | TestQueryExceptionHandling.test_query_methods_without_tests_returns_empty_on_error |
123 | |
| method | TestQueryExceptionHandling.test_query_dead_code_returns_empty_on_error |
128 | |
| method | TestQueryExceptionHandling.test_query_deep_inheritance_returns_empty_on_error |
131 | |
| method | TestQueryExceptionHandling.test_query_untested_entrypoints_returns_empty_on_error |
134 | |
| method | TestQueryExceptionHandling.test_query_class_methods_returns_empty_on_error |
139 | |
| method | TestQueryExceptionHandling.test_query_callers_returns_empty_on_error |
142 | |
| class | TestQueryMethodsWithoutTests |
149 | |
| method | TestQueryMethodsWithoutTests.test_excludes_tested_includes_untested |
150 | |
| method | TestQueryMethodsWithoutTests.test_respects_limit |
179 | |
| class | TestQueryDeadCode |
184 | |
| method | TestQueryDeadCode.test_private_uncalled_included_others_excluded |
185 | |
| class | TestQueryDeepInheritance |
233 | |
| method | TestQueryDeepInheritance.test_chain_lengths_reported_for_each_ancestor_hop |
234 | |
| class | TestQueryUntestedEntrypoints |
283 | |
| method | TestQueryUntestedEntrypoints.test_called_untested_included_others_excluded |
284 | |
| class | TestQueryClassMethods |
343 | |
| method | TestQueryClassMethods.test_methods_ordered_by_line_with_fields |
344 | |
| method | TestQueryClassMethods.test_unknown_class_returns_empty |
379 | |
| class | TestQueryCallers |
383 | |
| method | TestQueryCallers.test_returns_both_method_and_function_callers |
384 | |
| method | TestQueryCallers.test_no_callers_returns_empty |
418 | |
| class | TestGetStats |
422 | |
| method | TestGetStats.test_returns_node_and_relationship_counts |
423 | |
| class | TestVerify |
447 | |
| method | TestVerify.test_ok_true_for_project_with_module_and_class |
448 | |
| method | TestVerify.test_ok_false_for_nonexistent_project |
471 |