Skip to content

Commit c2769ef

Browse files
author
Oancea
committed
Change fixture names
1 parent 97c28e6 commit c2769ef

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/validator/test_native_gate_validator.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def validator_fixture() -> NativeGateValidator:
1717

1818

1919
@pytest.fixture
20-
def circuit_with_3_cnot() -> Circuit:
20+
def circuit_with_matching_gate_set() -> Circuit:
2121
builder = CircuitBuilder(5)
2222
builder.H(0)
2323
builder.CNOT(0, 1)
@@ -31,7 +31,7 @@ def circuit_with_3_cnot() -> Circuit:
3131

3232

3333
@pytest.fixture
34-
def circuit_with_4_cnot() -> Circuit:
34+
def circuit_with_unmatching_gate_set() -> Circuit:
3535
builder = CircuitBuilder(5)
3636
builder.H(0)
3737
builder.CNOT(0, 1)
@@ -43,13 +43,13 @@ def circuit_with_4_cnot() -> Circuit:
4343
return builder.to_circuit()
4444

4545

46-
def test_matching_gates(validator: NativeGateValidator, circuit_with_3_cnot: Circuit) -> None:
46+
def test_matching_gates(validator: NativeGateValidator, circuit_with_matching_gate_set: Circuit) -> None:
4747
try:
48-
validator.validate(circuit_with_3_cnot.ir)
48+
validator.validate(circuit_with_matching_gate_set.ir)
4949
except ValueError:
5050
pytest.fail("check() raised ValueError unexpectedly")
5151

5252

53-
def test_non_matching_gates(validator: NativeGateValidator, circuit_with_4_cnot: Circuit) -> None:
53+
def test_non_matching_gates(validator: NativeGateValidator, circuit_with_unmatching_gate_set: Circuit) -> None:
5454
with pytest.raises(ValueError, match="The following gates are not in the native gate set:.*"):
55-
validator.validate(circuit_with_4_cnot.ir)
55+
validator.validate(circuit_with_unmatching_gate_set.ir)

0 commit comments

Comments
 (0)