diff --git a/test/db/MetadataDatabaseFactory_test.py b/test/db/MetadataDatabaseFactory_test.py
index b7707ae3603080abdcabf264e42c62f75a387e7d..f69c9a890d136cfeef82205620628f3670f31654 100644
--- a/test/db/MetadataDatabaseFactory_test.py
+++ b/test/db/MetadataDatabaseFactory_test.py
@@ -389,18 +389,22 @@ class TestMetadataDatabaseFactory(unittest.IsolatedAsyncioTestCase):
         db = Database("sqlite:///:memory:")
         yesterday = datetime.datetime(2024, 11, 1, 8, 15, tzinfo=tz.tzutc())
 
-        mock_fetch_all.return_value = {
-            "id": 1234,
-            "created_time": yesterday,
-            "category": "instrument",
-            "network": "NT",
-            "station": "BDT",
-            "metadata": {
-                "foo": "bar",
+        mock_fetch_all.return_value = (
+            {
+                "id": 1234,
+                "created_time": yesterday,
+                "category": "instrument",
+                "network": "NT",
+                "station": "BDT",
+                "metadata": {
+                    "foo": "bar",
+                },
             },
-        },
+        )
 
-        await MetadataDatabaseFactory(database=db).update_metadata(meta=test_data, updated_by="test_user")
+        await MetadataDatabaseFactory(database=db).update_metadata(
+            meta=test_data, updated_by="test_user"
+        )
 
         assert mock_fetch_all.call_count == 2
         assert mock_execute.call_count == 2