From fbe32b698779eacf7c410c1ff3354481cf562be6 Mon Sep 17 00:00:00 2001 From: Alec Edgington <54802828+cqc-alec@users.noreply.github.com> Date: Fri, 19 Jul 2024 09:13:02 +0100 Subject: [PATCH] Skip test needing access to authenticated backend. (#478) --- tests/integration/backend_test.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/integration/backend_test.py b/tests/integration/backend_test.py index 7f451f13..db9c4b56 100644 --- a/tests/integration/backend_test.py +++ b/tests/integration/backend_test.py @@ -75,16 +75,14 @@ (requires configuration of Quantinuum username)" +@pytest.mark.skipif(skip_remote_tests, reason=REASON) @pytest.mark.parametrize("authenticated_quum_backend_qa", [None], indirect=True) @pytest.mark.parametrize("language", [Language.QASM, Language.QIR]) @pytest.mark.timeout(120) def test_quantinuum( authenticated_quum_backend_qa: QuantinuumBackend, language: Language ) -> None: - if skip_remote_tests: - backend = QuantinuumBackend(device_name="H1-1SC", machine_debug=True) - else: - backend = authenticated_quum_backend_qa + backend = authenticated_quum_backend_qa c = Circuit(4, 4, "test 1") c.H(0) c.CX(0, 1)