Skip to content

Commit

Permalink
fix: fix metabackend list
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-pasquale committed Jan 31, 2025
1 parent 7d8fe92 commit 8bde4f9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/qibojit/tests/test_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from qibojit.backends import MetaBackend

from .conftest import AVAILABLE_BACKENDS
from .conftest import AVAILABLE_BACKENDS, BACKENDS


def test_device_setter(backend):
Expand Down Expand Up @@ -122,5 +122,7 @@ def test_backend_eigh_sparse(backend, sparse_type, k):


def test_metabackend_list_available():
available_backends = {backend: True for backend in AVAILABLE_BACKENDS}
available_backends = {
backend: backend in AVAILABLE_BACKENDS for backend in BACKENDS
}
assert MetaBackend().list_available() == available_backends

0 comments on commit 8bde4f9

Please sign in to comment.