Skip to content

Commit d2e9e56

Browse files
authored
Update test_session_from_id (#2242)
* update test_session_from_id * auth client test typo
1 parent 19025a6 commit d2e9e56

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

test/integration/test_auth_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def test_cloud_access_token(self, dependencies: IntegrationTestDependencies) ->
4242
)
4343
cloud_auth = params.get_auth_handler()
4444
self.assertTrue(cloud_auth.tm)
45-
self.assertTrue(cloud_auth.tm.access_token())
45+
self.assertTrue(cloud_auth.tm.get_token())
4646

4747
@integration_test_setup(supported_channel=["ibm_quantum"], init_service=False)
4848
def test_url_404(self, dependencies: IntegrationTestDependencies) -> None:

test/integration/test_session.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ def test_session_from_id(self, service):
8383
isa_circuit = pm.run([bell()])
8484
with Session(backend=backend) as session:
8585
sampler = SamplerV2(mode=session)
86-
sampler.run(isa_circuit)
86+
job = sampler.run(isa_circuit)
87+
job.result()
8788

8889
with mock.patch.object(service._api_client, "create_session") as mock_create_session:
8990
new_session = Session.from_id(session_id=session._session_id, service=service)

0 commit comments

Comments
 (0)