Skip to content

Commit

Permalink
refactor: rename build_child_url to build_resource_url
Browse files Browse the repository at this point in the history
  • Loading branch information
jkglasbrenner committed Sep 10, 2024
1 parent 8bc158c commit 724d3d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dioptra/client/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ def parent_url(self) -> str:
"""The URL of the parent API endpoint."""
return self._session.build_url(self._session.url, self._parent_endpoint.name)

def build_child_url(self, parent_resource_id: str | int) -> str:
def build_resource_url(self, parent_resource_id: str | int) -> str:
return self._session.build_url(
self.parent_url, str(parent_resource_id), self._sub_endpoint.name
)
2 changes: 1 addition & 1 deletion src/dioptra/client/tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def get(self, parent_resource_id: str | int, child_resource_id: str | int) -> T:
The response from the Dioptra API.
"""
return self._session.get(
self.build_child_url(parent_resource_id),
self.build_resource_url(parent_resource_id),
str(child_resource_id),
self.name,
)
Expand Down

0 comments on commit 724d3d0

Please sign in to comment.