Skip to content

Commit

Permalink
Fix routing test
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-villar committed Aug 12, 2024
1 parent 6b2dba1 commit b03fa51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/ai/test_routing_ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ def test_routing_wrong_url(qv_circ, backend):
ai_optimized_circuit = ai_optimize_lf.run(qv_circ)
pytest.fail("Error expected")
except Exception as e:
assert "Expecting value: line 1 column 1 (char 0)" in str(e)
assert type(e).__name__ == "JSONDecodeError"
assert "Internal error: 404 Client Error: Not Found for url" in str(e)
assert type(e).__name__ == "TranspilerError"


@pytest.mark.disable_monkeypatch
Expand Down

0 comments on commit b03fa51

Please sign in to comment.