Skip to content

Commit 7239ff2

Browse files
formatting
1 parent fc734e6 commit 7239ff2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/unitary/with_extras/aqua/test_ui_handler.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class TestDataset:
2222
USER_COMPARTMENT_ID = "ocid1.compartment.oc1..<USER_COMPARTMENT_OCID>"
2323
USER_PROJECT_ID = "ocid1.datascienceproject.oc1.iad.<USER_PROJECT_OCID>"
2424
DEPLOYMENT_SHAPE_NAME = "VM.GPU.A10.1"
25-
LIMIT_NAME="ds-gpu-a10-count"
25+
LIMIT_NAME = "ds-gpu-a10-count"
2626

2727

2828
class TestAquaUIHandler(unittest.TestCase):
@@ -154,15 +154,18 @@ def test_list_subnets(self, mock_list_subnets):
154154
def test_get_shape_availability(self, mock_get_shape_availability):
155155
"""Test get shape availability."""
156156
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+
}
158161
self.ui_handler.get_argument = MagicMock(
159162
side_effect=lambda arg, default=None: args.get(arg, default)
160163
)
161164
self.ui_handler.get()
162165
mock_get_shape_availability.assert_called_with(
163166
compartment_id=TestDataset.USER_COMPARTMENT_ID,
164167
instance_shape=TestDataset.DEPLOYMENT_SHAPE_NAME,
165-
limit_name=TestDataset.LIMIT_NAME
168+
limit_name=TestDataset.LIMIT_NAME,
166169
)
167170

168171
@patch("ads.aqua.ui.AquaUIApp.is_bucket_versioned")

0 commit comments

Comments
 (0)