@@ -22,7 +22,7 @@ class TestDataset:
22
22
USER_COMPARTMENT_ID = "ocid1.compartment.oc1..<USER_COMPARTMENT_OCID>"
23
23
USER_PROJECT_ID = "ocid1.datascienceproject.oc1.iad.<USER_PROJECT_OCID>"
24
24
DEPLOYMENT_SHAPE_NAME = "VM.GPU.A10.1"
25
- LIMIT_NAME = "ds-gpu-a10-count"
25
+ LIMIT_NAME = "ds-gpu-a10-count"
26
26
27
27
28
28
class TestAquaUIHandler (unittest .TestCase ):
@@ -154,15 +154,18 @@ def test_list_subnets(self, mock_list_subnets):
154
154
def test_get_shape_availability (self , mock_get_shape_availability ):
155
155
"""Test get shape availability."""
156
156
self .ui_handler .request .path = "aqua/shapes/limit"
157
- args = {"instance_shape" : TestDataset .DEPLOYMENT_SHAPE_NAME ,"limit_name" :TestDataset .LIMIT_NAME }
157
+ args = {
158
+ "instance_shape" : TestDataset .DEPLOYMENT_SHAPE_NAME ,
159
+ "limit_name" : TestDataset .LIMIT_NAME ,
160
+ }
158
161
self .ui_handler .get_argument = MagicMock (
159
162
side_effect = lambda arg , default = None : args .get (arg , default )
160
163
)
161
164
self .ui_handler .get ()
162
165
mock_get_shape_availability .assert_called_with (
163
166
compartment_id = TestDataset .USER_COMPARTMENT_ID ,
164
167
instance_shape = TestDataset .DEPLOYMENT_SHAPE_NAME ,
165
- limit_name = TestDataset .LIMIT_NAME
168
+ limit_name = TestDataset .LIMIT_NAME ,
166
169
)
167
170
168
171
@patch ("ads.aqua.ui.AquaUIApp.is_bucket_versioned" )
0 commit comments