Skip to content

Commit 01e54c5

Browse files
author
Joel Collins
committed
Blackened
1 parent 5c05be4 commit 01e54c5

File tree

3 files changed

+7
-24
lines changed

3 files changed

+7
-24
lines changed

tests/test_core_utilities.py

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,12 @@ def test_get_summary(example_class):
4949

5050
def test_rupdate_granular():
5151
# Update string value
52-
s1 = {
53-
"a": "String",
54-
}
55-
s2 = {
56-
"a": "String 2",
57-
}
52+
s1 = {"a": "String"}
53+
s2 = {"a": "String 2"}
5854
assert utilities.rupdate(s1, s2) == s2
5955

6056
# Update int value
61-
i1 = {
62-
"b": 5,
63-
}
57+
i1 = {"b": 5}
6458
i2 = {"b": 50}
6559
assert utilities.rupdate(i1, i2) == i2
6660

@@ -76,9 +70,7 @@ def test_rupdate_granular():
7670

7771
# Merge dictionaries
7872
d1 = {"d": {"a": "String", "b": 5, "c": []}}
79-
d2 = {
80-
"d": {"a": "String 2", "b": 50, "c": [1, 2, 3, 4, 5]},
81-
}
73+
d2 = {"d": {"a": "String 2", "b": 50, "c": [1, 2, 3, 4, 5]}}
8274
assert utilities.rupdate(d1, d2) == d2
8375

8476
# Replace value with list
@@ -98,9 +90,7 @@ def test_rupdate_granular():
9890

9991
# Create missing dictionary
10092
md1 = {}
101-
md2 = {
102-
"d": {"a": "String 2", "b": 50, "c": [1, 2, 3, 4, 5]},
103-
}
93+
md2 = {"d": {"a": "String 2", "b": 50, "c": [1, 2, 3, 4, 5]}}
10494
assert utilities.rupdate(md1, md2) == md2
10595

10696

tests/test_server_spec_utilities.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,6 @@ def test_expand_refs_no_refs(spec):
208208

209209

210210
def test_expand_refs_missing_schema(spec):
211-
input_dict = {
212-
"$ref": "MissingRef",
213-
}
211+
input_dict = {"$ref": "MissingRef"}
214212

215213
assert utilities.expand_refs(input_dict, spec) == input_dict

tests/test_server_types.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,7 @@ def test_func(
102102
}
103103
)()
104104

105-
data = {
106-
"positional": 10,
107-
"n": 50,
108-
"optlist": [4, 5, 6],
109-
"untyped": True,
110-
}
105+
data = {"positional": 10, "n": 50, "optlist": [4, 5, 6], "untyped": True}
111106
assert gen_schema.dump(data) == expected_schema.dump(data)
112107

113108

0 commit comments

Comments
 (0)