Fix the actual bug
This commit is contained in:
parent
0b63da2e2a
commit
d28396b52d
2 changed files with 6 additions and 1 deletions
|
|
@ -236,7 +236,7 @@ def get_function_variables_definitions(
|
|||
source_code=source_code[0],
|
||||
file_path=definition_path,
|
||||
qualified_name=definition.full_name.removeprefix(
|
||||
name.module_name + ".",
|
||||
definition.module_name + ".",
|
||||
),
|
||||
only_function_name=definition.name,
|
||||
),
|
||||
|
|
|
|||
|
|
@ -102,6 +102,7 @@ def test_recursive_dependency() -> None:
|
|||
)[0]
|
||||
assert len(helper_functions) == 1
|
||||
assert helper_functions[0].jedi_definition.full_name == "test_function_dependencies.calculate_something"
|
||||
assert helper_functions[0].fully_qualified_name == "test_function_dependencies.calculate_something"
|
||||
|
||||
|
||||
@dataclass
|
||||
|
|
@ -198,6 +199,10 @@ def test_class_method_dependencies() -> None:
|
|||
== "test_function_dependencies.Graph.topologicalSortUtil"
|
||||
)
|
||||
assert code_context.helper_functions[0].jedi_definition.name == "topologicalSortUtil"
|
||||
assert (
|
||||
code_context.helper_functions[0].fully_qualified_name
|
||||
== "test_function_dependencies.Graph.topologicalSortUtil"
|
||||
)
|
||||
assert code_context.helper_functions[0].qualified_name == "Graph.topologicalSortUtil"
|
||||
assert code_context.contextual_dunder_methods == {("Graph", "__init__")}
|
||||
assert (
|
||||
|
|
|
|||
Loading…
Reference in a new issue