Skip to content

Commit b8bb6e0

Browse files
committed
make format
1 parent 94d74de commit b8bb6e0

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

linode_api4/groups/object_storage.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,4 @@ def global_quotas(self, *filters):
548548
:returns: A list of account-level Object Storage Quotas that matched the query.
549549
:rtype: PaginatedList of ObjectStorageGlobalQuota
550550
"""
551-
return self.client._get_and_filter(
552-
ObjectStorageGlobalQuota, *filters
553-
)
551+
return self.client._get_and_filter(ObjectStorageGlobalQuota, *filters)

test/integration/models/object_storage/test_obj_quotas.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ def test_get_obj_storage_quota_usage(test_linode_client):
3737
if len(quotas) < 1:
3838
pytest.skip("No available quota for testing. Skipping now...")
3939

40-
quota_with_usage = next((quota for quota in quotas if quota.has_usage), None)
40+
quota_with_usage = next(
41+
(quota for quota in quotas if quota.has_usage), None
42+
)
4143

4244
if quota_with_usage is None:
4345
quota_id = quotas[0].quota_id
@@ -99,7 +101,9 @@ def test_get_obj_storage_global_quota_usage(test_linode_client):
99101
if len(quotas) < 1:
100102
pytest.skip("No available global quota for testing. Skipping now...")
101103

102-
quota_with_usage = next((quota for quota in quotas if quota.has_usage), None)
104+
quota_with_usage = next(
105+
(quota for quota in quotas if quota.has_usage), None
106+
)
103107

104108
if quota_with_usage is None:
105109
quota_id = quotas[0].quota_id

test/unit/objects/object_storage_test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,9 @@ def test_global_quota_get_and_list(self):
365365
self.assertEqual(quota.quota_limit, 100)
366366
self.assertTrue(quota.has_usage)
367367

368-
usage_url = "/object-storage/global-quotas/obj-access-keys-per-account/usage"
368+
usage_url = (
369+
"/object-storage/global-quotas/obj-access-keys-per-account/usage"
370+
)
369371
with self.mock_get(usage_url) as m:
370372
usage = quota.usage()
371373
self.assertIsNotNone(usage)
@@ -379,9 +381,7 @@ def test_global_quota_get_and_list(self):
379381
self.assertIsNotNone(quotas)
380382
self.assertEqual(m.call_url, list_url)
381383
self.assertEqual(len(quotas), 2)
382-
self.assertEqual(
383-
quotas[0].quota_id, "obj-access-keys-per-account"
384-
)
384+
self.assertEqual(quotas[0].quota_id, "obj-access-keys-per-account")
385385
self.assertEqual(quotas[0].quota_type, "obj-access-keys")
386386
self.assertEqual(
387387
quotas[0].quota_name,

0 commit comments

Comments
 (0)