Skip to content

Commit 8b42e36

Browse files
authored
Update test_refresh method again (#1801)
1 parent c3e8a6a commit 8b42e36

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/integration/test_fake_backends.py

+5
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import itertools
1717
import operator
1818

19+
from unittest import SkipTest
1920
from ddt import ddt, data, idata, unpack
2021

2122
from qiskit.circuit import QuantumCircuit
@@ -37,6 +38,7 @@
3738
FakePrague,
3839
)
3940
from ..ibm_test_case import IBMTestCase, IBMIntegrationTestCase
41+
from ..decorators import production_only
4042

4143
FAKE_PROVIDER_FOR_BACKEND_V2 = FakeProviderForBackendV2()
4244
FAKE_PROVIDER = FakeProvider()
@@ -182,8 +184,11 @@ def setUpClass(cls):
182184
# pylint: disable=no-value-for-parameter
183185
super().setUpClass()
184186

187+
@production_only
185188
def test_refresh_method(self):
186189
"""Test refresh method"""
190+
if self.dependencies.channel == "ibm_cloud":
191+
raise SkipTest("Cloud account does not have real backends.")
187192
# to verify the data files will be updated
188193
old_backend = FakeSherbrooke()
189194
# change some configuration

0 commit comments

Comments
 (0)