Skip to content

Commit

Permalink
Update test_refresh_method (#1799)
Browse files Browse the repository at this point in the history
  • Loading branch information
kt474 authored Jul 10, 2024
1 parent 01cb486 commit c3e8a6a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/integration/test_fake_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ def test_refresh_method(self):
old_backend = FakeSherbrooke()
# change some configuration
old_backend.backend_version = "fake_version"
# set instance to none to access real backend
self.service._account.instance = None

with self.assertLogs("qiskit_ibm_runtime", level="INFO") as logs:
old_backend.refresh(self.service)
self.assertIn("The backend fake_sherbrooke has been updated", logs.output[0])
Expand Down

0 comments on commit c3e8a6a

Please sign in to comment.