Skip to content

Commit

Permalink
refactor(tests): run baby test before running all
Browse files Browse the repository at this point in the history
  • Loading branch information
qartik committed Nov 7, 2023
1 parent 14bd50f commit 1e762d2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,14 @@


class TestApi:
def test_pytket_to_phir_no_machine(self) -> None:
"""Test case when no machine is present."""
circuit = get_qasm_as_circuit(QasmFile.baby)

assert pytket_to_phir(circuit)

@pytest.mark.parametrize("test_file", list(QasmFile))
def test_pytket_to_phir_no_machine(self, test_file: QasmFile) -> None:
def test_pytket_to_phir_no_machine_all(self, test_file: QasmFile) -> None:
"""Test case when no machine is present."""
circuit = get_qasm_as_circuit(test_file)

Expand All @@ -27,7 +33,7 @@ def test_pytket_to_phir_no_machine(self, test_file: QasmFile) -> None:
assert pytket_to_phir(circuit)

@pytest.mark.parametrize("test_file", list(QasmFile))
def test_pytket_to_phir_h1_1_all_circuits(self, test_file: QasmFile) -> None:
def test_pytket_to_phir_h1_1_all(self, test_file: QasmFile) -> None:
"""Standard case."""
circuit = get_qasm_as_circuit(test_file)

Expand Down

0 comments on commit 1e762d2

Please sign in to comment.