Skip to content

Commit a27e16a

Browse files
committed
Whitespace fixes
1 parent 8490acb commit a27e16a

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

tests/test_schema.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,11 @@ def test_build_action_schema_typeerror():
6565
with pytest.raises(TypeError):
6666
action_schema = schema.build_action_schema(input_schema, output_schema)
6767

68+
6869
def test_nest_if_needed():
6970
nested_schema = schema.nest_if_needed(schema.ActionSchema())
7071
assert isinstance(nested_schema, fields.Field)
7172
nested_dict = schema.nest_if_needed({"name": fields.Integer()})
7273
assert isinstance(nested_schema, fields.Field)
7374
nested_field = schema.nest_if_needed(fields.Boolean())
74-
assert isinstance(nested_schema, fields.Field)
75+
assert isinstance(nested_schema, fields.Field)

tests/test_td.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ def test_td_init(helpers, thing, thing_description, app_ctx, schemas_path):
1616
validate_spec(thing.spec)
1717

1818

19-
def test_td_add_link(helpers, thing, thing_description, view_cls, app_ctx, schemas_path):
19+
def test_td_add_link(
20+
helpers, thing, thing_description, view_cls, app_ctx, schemas_path
21+
):
2022
thing.add_view(view_cls, "/test_view_cls")
2123
thing_description.add_link(view_cls, "rel")
2224
assert {
@@ -71,7 +73,9 @@ def post(self):
7173
validate_spec(thing.spec)
7274

7375

74-
def test_td_action_with_schema(helpers, thing, app, thing_description, app_ctx, schemas_path):
76+
def test_td_action_with_schema(
77+
helpers, thing, app, thing_description, app_ctx, schemas_path
78+
):
7579
class Index(ActionView):
7680
args = {"integer": fields.Int()}
7781
semtype = "ToggleAction"
@@ -87,7 +91,7 @@ def post(self):
8791
with app_ctx.test_request_context():
8892
assert "index" in thing_description.to_dict().get("actions")
8993
helpers.validate_thing_description(thing_description, app_ctx, schemas_path)
90-
94+
9195
validate_spec(thing.spec)
9296

9397

@@ -145,7 +149,9 @@ def get(self):
145149
validate_spec(thing.spec)
146150

147151

148-
def test_td_property_write_only(helpers, app, thing, thing_description, app_ctx, schemas_path):
152+
def test_td_property_write_only(
153+
helpers, app, thing, thing_description, app_ctx, schemas_path
154+
):
149155
class Index(PropertyView):
150156
schema = fields.Int()
151157

@@ -160,7 +166,7 @@ def put(self):
160166
with app_ctx.test_request_context():
161167
assert "index" in thing_description.to_dict().get("properties")
162168
helpers.validate_thing_description(thing_description, app_ctx, schemas_path)
163-
169+
164170
validate_spec(thing.spec)
165171

166172

0 commit comments

Comments
 (0)