diff --git a/tests/test_core_utilities.py b/tests/test_core_utilities.py index 46c7ec1f..9d2b6987 100644 --- a/tests/test_core_utilities.py +++ b/tests/test_core_utilities.py @@ -49,18 +49,12 @@ def test_get_summary(example_class): def test_rupdate_granular(): # Update string value - s1 = { - "a": "String", - } - s2 = { - "a": "String 2", - } + s1 = {"a": "String"} + s2 = {"a": "String 2"} assert utilities.rupdate(s1, s2) == s2 # Update int value - i1 = { - "b": 5, - } + i1 = {"b": 5} i2 = {"b": 50} assert utilities.rupdate(i1, i2) == i2 @@ -76,9 +70,7 @@ def test_rupdate_granular(): # Merge dictionaries d1 = {"d": {"a": "String", "b": 5, "c": []}} - d2 = { - "d": {"a": "String 2", "b": 50, "c": [1, 2, 3, 4, 5]}, - } + d2 = {"d": {"a": "String 2", "b": 50, "c": [1, 2, 3, 4, 5]}} assert utilities.rupdate(d1, d2) == d2 # Replace value with list @@ -98,9 +90,7 @@ def test_rupdate_granular(): # Create missing dictionary md1 = {} - md2 = { - "d": {"a": "String 2", "b": 50, "c": [1, 2, 3, 4, 5]}, - } + md2 = {"d": {"a": "String 2", "b": 50, "c": [1, 2, 3, 4, 5]}} assert utilities.rupdate(md1, md2) == md2 diff --git a/tests/test_server_spec_utilities.py b/tests/test_server_spec_utilities.py index 394508af..40a3c51e 100644 --- a/tests/test_server_spec_utilities.py +++ b/tests/test_server_spec_utilities.py @@ -208,8 +208,6 @@ def test_expand_refs_no_refs(spec): def test_expand_refs_missing_schema(spec): - input_dict = { - "$ref": "MissingRef", - } + input_dict = {"$ref": "MissingRef"} assert utilities.expand_refs(input_dict, spec) == input_dict diff --git a/tests/test_server_types.py b/tests/test_server_types.py index 1548a82a..eee59284 100644 --- a/tests/test_server_types.py +++ b/tests/test_server_types.py @@ -102,12 +102,7 @@ def test_func( } )() - data = { - "positional": 10, - "n": 50, - "optlist": [4, 5, 6], - "untyped": True, - } + data = {"positional": 10, "n": 50, "optlist": [4, 5, 6], "untyped": True} assert gen_schema.dump(data) == expected_schema.dump(data)