Skip to content

Commit

Permalink
sanity check that tests are running as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
lillian542 committed Apr 3, 2024
1 parent 8cbd9e2 commit 8188231
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,18 @@
I_broadcasted = I[pnp.newaxis]


def test_that_opmath_is_enabled():
"""Confirm that the tests are running by default with new_opmath enabled"""
if not qml.operation.active_new_opmath():
raise RuntimeError


def test_that_opmath_is_disabled():
"""Confirm that the tests are running by default with new_opmath disabled"""
if qml.operation.active_new_opmath():
raise RuntimeError


class TestOperatorConstruction:
"""Test custom operators' construction."""

Expand Down

0 comments on commit 8188231

Please sign in to comment.