From 4eedc5f710af7dde8fb1fb77f11ee5d33c5adb11 Mon Sep 17 00:00:00 2001 From: kevin-tian Date: Wed, 16 Oct 2024 12:42:06 -0400 Subject: [PATCH] Suppress reptitive debug warnings in tests --- test/unit/fake_provider/test_local_service.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/unit/fake_provider/test_local_service.py b/test/unit/fake_provider/test_local_service.py index 73f68e3f9..00de1a9fa 100644 --- a/test/unit/fake_provider/test_local_service.py +++ b/test/unit/fake_provider/test_local_service.py @@ -11,6 +11,7 @@ # that they have been altered from the originals. """Test of generated fake backends.""" +import logging from ddt import data, ddt from qiskit.providers.exceptions import QiskitBackendNotFoundError @@ -25,6 +26,11 @@ class QiskitRuntimeLocalServiceTest(IBMTestCase): """Qiskit runtime local service test.""" + @classmethod + def setUpClass(cls): + """Initial class level setup.""" + logging.basicConfig(level=logging.INFO) + def test_backend(self): """Tests the ``backend`` method.""" service = QiskitRuntimeLocalService()