Skip to content

Commit

Permalink
update endpoint target
Browse files Browse the repository at this point in the history
  • Loading branch information
Mildophin committed Oct 17, 2024
1 parent 0920b79 commit be5d28f
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 @@ -268,7 +268,7 @@ def cancel_batch(self, batch_id: str) -> Dict[str, Any]:
def cancel_batches(self, filters: BatchFilters) -> Dict[str, Any]:
response: Dict[str, Any] = self._authenticated_request(
"PATCH",
f"{self.endpoints.core}/api/v1/batches",
f"{self.endpoints.core}/api/v1/batches/cancel",
params=filters.model_dump(exclude_unset=True),
)["data"]
return response
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/test_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ def test_cancel_batches_success(
# Check that the correct url was requested with query params
assert (
mock_request.last_request.url
== f"{self.sdk._client.endpoints.core}/api/v1/batches{query_params}"
== f"{self.sdk._client.endpoints.core}/api/v1/batches/cancel{query_params}"
)

def test_cancel_batches_raises_value_error_on_invalid_filters(self):
Expand Down

0 comments on commit be5d28f

Please sign in to comment.