File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2849,7 +2849,7 @@ def get_path_segments_with_subpath(self):
2849
2849
2850
2850
return part_and_subpath
2851
2851
2852
- def parent_path (self ):
2852
+ def parent_directory (self ):
2853
2853
"""Return the parent path for this CodebaseResource or None."""
2854
2854
return parent_directory (self .path , with_trail = False )
2855
2855
@@ -2858,7 +2858,7 @@ def has_parent(self):
2858
2858
Return True if this CodebaseResource has a parent CodebaseResource or
2859
2859
False otherwise.
2860
2860
"""
2861
- parent_path = self .parent_path ()
2861
+ parent_path = self .parent_directory ()
2862
2862
if not parent_path :
2863
2863
return False
2864
2864
if self .project .codebaseresources .filter (path = parent_path ).exists ():
@@ -2873,7 +2873,7 @@ def parent(self, codebase=None):
2873
2873
`codebase` is not used in this context but required for compatibility
2874
2874
with the commoncode.resource.Codebase class API.
2875
2875
"""
2876
- parent_path = self .parent_path ()
2876
+ parent_path = self .parent_directory ()
2877
2877
return parent_path and self .project .codebaseresources .get (path = parent_path )
2878
2878
2879
2879
def siblings (self , codebase = None ):
Original file line number Diff line number Diff line change @@ -2053,7 +2053,7 @@ def test_scanpipe_codebase_resource_model_walk_method(self):
2053
2053
path = "asgiref-3.3.0.whl-extract/asgiref/compatibility.py"
2054
2054
)
2055
2055
expected_parent_path = "asgiref-3.3.0.whl-extract/asgiref"
2056
- self .assertEqual (expected_parent_path , asgiref_resource .parent_path ())
2056
+ self .assertEqual (expected_parent_path , asgiref_resource .parent_directory ())
2057
2057
self .assertTrue (asgiref_resource .has_parent ())
2058
2058
expected_parent = self .project_asgiref .codebaseresources .get (
2059
2059
path = "asgiref-3.3.0.whl-extract/asgiref"
You can’t perform that action at this time.
0 commit comments