Skip to content

Commit 1ba5863

Browse files
committed
style(cli): Format code and assets to comply with pyink and linter guidelines
Reformat tests/unittests/cli/utils/test_gcp_utils.py using pyink, and restore the trailing newline in runtime-config.json to align with pre-commit style rules. Change-Id: Id2593bf761845d15c45cbde18f6d3a8f0e5dd639
1 parent 933653c commit 1ba5863

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
22
"backendUrl": ""
3-
}
3+
}

tests/unittests/cli/utils/test_gcp_utils.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,7 @@ def test_sign_up_express(self, mock_auth_default, mock_session_cls):
140140
},
141141
)
142142

143-
@mock.patch(
144-
"google.cloud.resourcemanager_v3.ProjectsClient"
145-
)
143+
@mock.patch("google.cloud.resourcemanager_v3.ProjectsClient")
146144
def test_list_gcp_projects(self, mock_client_cls):
147145
mock_client = mock.Mock()
148146
mock_client_cls.return_value = mock_client
@@ -165,7 +163,8 @@ def test_list_gcp_projects(self, mock_client_cls):
165163
@mock.patch.dict("sys.modules", {"google.cloud": None})
166164
def test_list_gcp_projects_import_error(self):
167165
with self.assertRaisesRegex(
168-
RuntimeError, "Listing GCP projects requires the 'gcp' optional dependency"
166+
RuntimeError,
167+
"Listing GCP projects requires the 'gcp' optional dependency",
169168
):
170169
gcp_utils.list_gcp_projects()
171170

0 commit comments

Comments
 (0)