Skip to content

Commit

Permalink
Merge branch 'main' into migrate-fake-base-classes
Browse files Browse the repository at this point in the history
  • Loading branch information
ElePT authored Dec 11, 2023
2 parents 9ea74d6 + 4d06ac3 commit fec8a2f
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions test/integration/test_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,19 +101,6 @@ def test_session_from_id(self, service):
job = sampler.run(ReferenceCircuits.bell(), shots=400)
self.assertEqual(session_id, job.session_id)

@run_integration_test
def test_session_no_backend(self, service):
"""Test session without passing in backend."""
if self.dependencies.channel == "ibm_quantum":
self.skipTest("Not supported on ibm_quantum")
with Session(service) as session:
sampler = Sampler(session=session)
job1 = sampler.run(ReferenceCircuits.bell(), shots=400)
job2 = sampler.run(ReferenceCircuits.bell(), shots=400)
self.assertTrue(job1.backend())
self.assertTrue(job2.backend())
self.assertEqual(job1.backend().name, job2.backend().name)


class TestBackendRunInSession(IBMIntegrationTestCase):
"""Integration tests for Backend.run in Session."""
Expand Down

0 comments on commit fec8a2f

Please sign in to comment.