Orchestrata Ultimate › Tests › Reference › knowledge_graph › test_knowledge_extractors

Tests reference — tests/knowledge_graph/test_knowledge_extractors.py

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

Prose pending.

tests/knowledge_graph/test_knowledge_extractors.py

source · 20 tests · 195 lines

Tests for ClassExtractor and FunctionExtractor.

Covers: knowledge_graph.class_extractor, knowledge_graph.function_extractor, knowledge_graph.types

Kind Name Line Description
class TestClassExtractor 68 Test ClassExtractor.
method TestClassExtractor.test_extract_classes 71
method TestClassExtractor.test_class_methods 78
method TestClassExtractor.test_class_base_classes 84
method TestClassExtractor.test_class_docstring 89
method TestClassExtractor.test_class_line_range 94
method TestClassExtractor.test_class_file_id 100
method TestClassExtractor.test_extract_with_methods 105
method TestClassExtractor.test_method_details 112
method TestClassExtractor.test_method_return_type 119
method TestClassExtractor.test_async_method 127
method TestClassExtractor.test_method_class_id 135
class TestFunctionExtractor 142 Test FunctionExtractor.
method TestFunctionExtractor.test_extract_standalone 145
method TestFunctionExtractor.test_excludes_methods 151
method TestFunctionExtractor.test_extract_all_includes_methods 157
method TestFunctionExtractor.test_function_params 163
method TestFunctionExtractor.test_function_calls 171
method TestFunctionExtractor.test_async_detection 176
method TestFunctionExtractor.test_sync_detection 181
method TestFunctionExtractor.test_function_docstring 186
method TestFunctionExtractor.test_function_signature 191