Skip to content

Commit

Permalink
rename endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Amin committed Sep 23, 2024
1 parent 9abc4d3 commit 8691892
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pasqal_cloud/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ def get_device_specs_dict(self) -> Dict[str, str]:

def get_public_device_specs(self) -> Dict[str, str]:
response = requests.request(
"GET", f"{self.endpoints.core}/api/v1/public/devices-specs"
"GET", f"{self.endpoints.core}/api/v1/devices/public-specs"
)
response.raise_for_status()
devices = response.json()["data"]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_device_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def test_get_public_device_specs_success(self, mock_request: requests_mock.Mocke

assert (
mock_request.last_request.url
== f"{sdk_without_auth._client.endpoints.core}/api/v1/public/devices-specs"
== f"{sdk_without_auth._client.endpoints.core}/api/v1/devices/public-specs"
)

internal_device_specs_dict = self.sdk.get_device_specs_dict()
Expand Down

0 comments on commit 8691892

Please sign in to comment.