Skip to content

Commit a73f453

Browse files
committed
fix flake8 issues
Signed-off-by: Chris Snow <[email protected]>
1 parent 9e782bd commit a73f453

File tree

3 files changed

+20
-12
lines changed

3 files changed

+20
-12
lines changed

tests/library/catalog_test.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,15 +118,19 @@ def test_get_catalog_id_format(self, mock_get, mock_post):
118118

119119
with self.assertRaisesRegexp(
120120
AssertionError,
121-
"'catalog_id' must have format "
122-
+ r"'\/api\/v1\/catalog\/\[0-9\]\+'",
121+
(
122+
"'catalog_id' must have format "
123+
+ r"'\/api\/v1\/catalog\/\[0-9\]\+'" # noqa: W503
124+
),
123125
):
124126
get_client().catalog.get("garbage")
125127

126128
with self.assertRaisesRegexp(
127129
AssertionError,
128-
"'catalog_id' must have format "
129-
+ r"'\/api\/v1\/catalog\/\[0-9\]\+'",
130+
(
131+
"'catalog_id' must have format "
132+
+ r"'\/api\/v1\/catalog\/\[0-9\]\+'" # noqa: W503
133+
),
130134
):
131135
get_client().catalog.get("/api/v1/catalog/some_id")
132136

tests/library/k8s_cluster_test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,11 @@ def test_get_k8sclusters(self, mock_get, mock_post):
213213

214214
self.assertEqual(
215215
get_client().k8s_cluster.list().tabulate(["description", "id"]),
216+
("+-------------+-----------------------+\n"
217+
"| description | id |\n"
216218
"+-------------+-----------------------+\n"
217-
+ "| description | id |\n"
218-
+ "+-------------+-----------------------+\n"
219-
+ "| my cluster | /api/v2/k8scluster/20 |\n"
220-
+ "+-------------+-----------------------+",
219+
"| my cluster | /api/v2/k8scluster/20 |\n"
220+
"+-------------+-----------------------+",)
221221
)
222222

223223

tests/library/tenant_test.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,15 +271,19 @@ def test_get_tenant_id_format(self, mock_get, mock_post):
271271

272272
with self.assertRaisesRegexp(
273273
AssertionError,
274-
"'tenant_id' must have format "
275-
+ r"'\/api\/v1\/tenant\/\[0-9\]\+'",
274+
(
275+
"'tenant_id' must have format "
276+
+ r"'\/api\/v1\/tenant\/\[0-9\]\+'" # noqa: W503
277+
),
276278
):
277279
client.tenant.get("garbage")
278280

279281
with self.assertRaisesRegexp(
280282
AssertionError,
281-
"'tenant_id' must have format "
282-
+ r"'\/api\/v1\/tenant\/\[0-9\]\+'",
283+
(
284+
"'tenant_id' must have format "
285+
+ r"'\/api\/v1\/tenant\/\[0-9\]\+'" # noqa: W503
286+
),
283287
):
284288
client.tenant.get("/api/v1/tenant/some_id")
285289

0 commit comments

Comments
 (0)