Skip to content

Commit

Permalink
update device tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lillian542 committed Apr 16, 2024
1 parent e6c59f6 commit 1f4e1d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ def test_check_validity_on_valid_queue(self, mock_device_supporting_paulis):
# Raises an error if queue or observables are invalid
dev.check_validity(queue, observables)

@pytest.mark.usefixtures("use_new_opmath")
def test_check_validity_containing_prod(self, mock_device_supporting_prod):
"""Tests that the function Device.check_validity works with Prod"""

Expand All @@ -323,6 +324,7 @@ def test_check_validity_containing_prod(self, mock_device_supporting_prod):

dev.check_validity(queue, observables)

@pytest.mark.usefixtures("use_new_opmath")
def test_prod_containing_unsupported_nested_observables(self, mock_device_supporting_prod):
"""Tests that the observables nested within Prod are checked for validity"""

Expand Down

0 comments on commit 1f4e1d7

Please sign in to comment.