24
24
def _get_client () -> QaaSClient :
25
25
client = QaaSClient (
26
26
project_id = os .environ ["SCALEWAY_PROJECT_ID" ],
27
- secret_key = os .environ ["SCALEWAY_API_TOKEN " ],
27
+ secret_key = os .environ ["SCALEWAY_SECRET_KEY " ],
28
28
url = os .environ ["SCALEWAY_API_URL" ],
29
29
)
30
30
@@ -88,7 +88,7 @@ def test_list_platforms_by_backend(self):
88
88
assert platform .backend_name == "aer"
89
89
90
90
91
- def test_list_platforms_by_provider (self ):
91
+ def test_list_platforms_by_provider ():
92
92
client = _get_client ()
93
93
94
94
platforms = client .list_platforms (provider_name = "quandela" )
@@ -99,23 +99,23 @@ def test_list_platforms_by_provider(self):
99
99
assert platform .provider_name == "quandela"
100
100
101
101
102
- def test_list_platforms_by_unexisting_provider (self ):
102
+ def test_list_platforms_by_unexisting_provider ():
103
103
client = _get_client ()
104
104
105
105
platforms = client .list_platforms (provider_name = "aksjdkhjqw" )
106
106
107
107
assert platforms == []
108
108
109
109
110
- def test_list_platforms_by_unexisting_backend (self ):
110
+ def test_list_platforms_by_unexisting_backend ():
111
111
client = _get_client ()
112
112
113
113
platforms = client .list_platforms (backend_name = "129837yiuhjdwksad" )
114
114
115
115
assert platforms == []
116
116
117
117
118
- def test_list_platforms_by_name (self ):
118
+ def test_list_platforms_by_name ():
119
119
client = _get_client ()
120
120
121
121
platforms = client .list_platforms (name = _TEST_PLATFORM_NAME )
@@ -126,7 +126,7 @@ def test_list_platforms_by_name(self):
126
126
assert len (platforms ) > 0
127
127
128
128
129
- def test_list_platforms_by_unexisting_name (self ):
129
+ def test_list_platforms_by_unexisting_name ():
130
130
client = _get_client ()
131
131
132
132
platforms = client .list_platforms (name = "w3219380ijskd" )
0 commit comments