File tree Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -25,25 +25,14 @@ client = QaaSClient(
2525
2626platforms = client.list_platforms(name = " aer_simulation_pop_c16m128" )
2727
28- assert platforms is not None
29- assert len (platforms) == 1
30-
3128target_platform = platforms[0 ]
3229
33- assert target_platform.id is not None
34-
3530session = client.create_session(platform_id = target_platform.id, max_duration = " 2min" , max_idle_duration = " 2min" )
3631
37- assert session is not None
38- assert session.id is not None
39- assert session.platform_id == target_platform.id
40-
4132while session.status == " starting" :
4233 session = client.get_session(session.id)
4334 time.sleep(3 )
4435
45- assert session.status == " running"
46-
4736client.delete_session(session.id)
4837```
4938
Original file line number Diff line number Diff line change 2222
2323setup (
2424 name = "scaleway_qaas_client" ,
25- version = "0.1.3 " ,
25+ version = "0.1.4 " ,
2626 project_urls = {
2727 "Documentation" : "https://www.scaleway.com/en/quantum-as-a-service/" ,
2828 "Source" : "https://github.com/scaleway/scaleway-qaas-client-pythom" ,
You can’t perform that action at this time.
0 commit comments