Skip to content

Commit

Permalink
switching method + fixing test. (#858)
Browse files Browse the repository at this point in the history
* switching method + fixing test.

* bump patch.
  • Loading branch information
weinbe58 authored Jan 9, 2024
1 parent 86bac29 commit 20f0866
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "bloqade"
version = "0.15.1"
version = "0.15.2"
description = "Neutral atom software development kit"
authors = [
{name = "QuEra Computing Inc.", email = "[email protected]"},
Expand Down
2 changes: 1 addition & 1 deletion src/bloqade/submission/quera.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def get_capabilities(self) -> QuEraCapabilities:
return super().get_capabilities()

def submit_task(self, task_ir: QuEraTaskSpecification) -> str:
return self.queue_api.post_task(
return self.queue_api.submit_task(
task_ir.json(by_alias=True, exclude_none=True, exclude_unset=True)
)

Expand Down
4 changes: 2 additions & 2 deletions tests/test_quera_submission_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ def test_quera_backend_submit():

queue = MagicMock()

queue.post_task.return_value = "task_id"
queue.submit_task.return_value = "task_id"

backend = bloqade.submission.quera.QuEraBackend(**api_config)
backend._queue_api = queue

assert backend.submit_task(get_task_ir()) == "task_id"
queue.post_task.assert_called_once()
queue.submit_task.assert_called_once()


def test_quera_backend_validate_fail():
Expand Down

0 comments on commit 20f0866

Please sign in to comment.