@@ -28,7 +28,7 @@ class TestDataset:
28
28
TENANCY_OCID = "ocid1.tenancy.oc1..<OCID>"
29
29
VCN_ID = "ocid1.vcn.oc1.iad.<OCID>"
30
30
DEPLOYMENT_SHAPE_NAMES = ["VM.GPU.A10.1" , "BM.GPU4.8" , "VM.GPU.A10.2" ]
31
- LIMIT_NAMES = ["ds-gpu-a10-count" ,"ds-gpu4-count" ,"ds-gpu-a10-count" ]
31
+ LIMIT_NAMES = ["ds-gpu-a10-count" , "ds-gpu4-count" , "ds-gpu-a10-count" ]
32
32
33
33
34
34
class TestAquaUI (unittest .TestCase ):
@@ -414,7 +414,7 @@ def test_get_shape_availability(self, mock_get_resource_availability):
414
414
)
415
415
result = self .app .get_shape_availability (
416
416
instance_shape = TestDataset .DEPLOYMENT_SHAPE_NAMES [0 ],
417
- limit_name = TestDataset .LIMIT_NAMES [0 ]
417
+ limit_name = TestDataset .LIMIT_NAMES [0 ],
418
418
)
419
419
420
420
expected_attributes = {"available_count" }
@@ -430,7 +430,7 @@ def test_get_shape_availability(self, mock_get_resource_availability):
430
430
):
431
431
self .app .get_shape_availability (
432
432
instance_shape = TestDataset .DEPLOYMENT_SHAPE_NAMES [1 ],
433
- limit_name = TestDataset .LIMIT_NAMES [1 ]
433
+ limit_name = TestDataset .LIMIT_NAMES [1 ],
434
434
)
435
435
436
436
with pytest .raises (
@@ -441,9 +441,9 @@ def test_get_shape_availability(self, mock_get_resource_availability):
441
441
442
442
result = self .app .get_shape_availability (
443
443
instance_shape = TestDataset .DEPLOYMENT_SHAPE_NAMES [2 ],
444
- limit_name = TestDataset .LIMIT_NAMES [2 ]
444
+ limit_name = TestDataset .LIMIT_NAMES [2 ],
445
445
)
446
- assert result == {' available_count' : 2 }
446
+ assert result == {" available_count" : 2 }
447
447
448
448
@parameterized .expand ([True , False ])
449
449
@patch ("ads.common.object_storage_details.ObjectStorageDetails.from_path" )
0 commit comments