Skip to content

Commit

Permalink
Fix linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
y4izus committed Jul 15, 2024
1 parent 3d2cae0 commit ba3c357
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/test_transpiler_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,7 @@ def test_transpile_exceed_circuit_size():
transpiler_service.run(circuit)
pytest.fail("Error expected")
except Exception as e:
assert (
str(e)
== "'Circuit has more gates than the allowed maximum of 5000.'"
)
assert str(e) == "'Circuit has more gates than the allowed maximum of 5000.'"


def test_transpile_malformed_body():
Expand All @@ -207,7 +204,7 @@ def test_transpile_malformed_body():
backend_name="ibm_kyoto",
ai="false",
optimization_level=3,
qiskit_transpile_options={ "failing_option": 0 }
qiskit_transpile_options={"failing_option": 0},
)

try:
Expand All @@ -216,7 +213,7 @@ def test_transpile_malformed_body():
except Exception as e:
assert (
str(e)
== '"transpile() got an unexpected keyword argument \'failing_option\'"'
== "\"transpile() got an unexpected keyword argument 'failing_option'\""
)


Expand Down

0 comments on commit ba3c357

Please sign in to comment.