From 383057d9b88386b3ba38ea0a0368592f6f52354b Mon Sep 17 00:00:00 2001 From: John Chilton Date: Wed, 27 Mar 2024 10:21:24 -0400 Subject: [PATCH] Linting fix. --- test/unit/data/test_quota.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/data/test_quota.py b/test/unit/data/test_quota.py index 1582ab9c0f57..96187045829d 100644 --- a/test/unit/data/test_quota.py +++ b/test/unit/data/test_quota.py @@ -152,7 +152,7 @@ def test_calculate_objectstore_usage(self): usage = u.dictify_objectstore_usage() assert len(usage) == 2 - usage_dict = dict([(u.object_store_id, u.total_disk_usage) for u in usage]) + usage_dict = {u.object_store_id: u.total_disk_usage for u in usage} assert int(usage_dict["not_tracked"]) == 10 assert int(usage_dict["tracked"]) == 15