@@ -16,7 +16,9 @@ def test_td_init(helpers, thing, thing_description, app_ctx, schemas_path):
16
16
validate_spec (thing .spec )
17
17
18
18
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
+ ):
20
22
thing .add_view (view_cls , "/test_view_cls" )
21
23
thing_description .add_link (view_cls , "rel" )
22
24
assert {
@@ -71,7 +73,9 @@ def post(self):
71
73
validate_spec (thing .spec )
72
74
73
75
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
+ ):
75
79
class Index (ActionView ):
76
80
args = {"integer" : fields .Int ()}
77
81
semtype = "ToggleAction"
@@ -87,7 +91,7 @@ def post(self):
87
91
with app_ctx .test_request_context ():
88
92
assert "index" in thing_description .to_dict ().get ("actions" )
89
93
helpers .validate_thing_description (thing_description , app_ctx , schemas_path )
90
-
94
+
91
95
validate_spec (thing .spec )
92
96
93
97
@@ -145,7 +149,9 @@ def get(self):
145
149
validate_spec (thing .spec )
146
150
147
151
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
+ ):
149
155
class Index (PropertyView ):
150
156
schema = fields .Int ()
151
157
@@ -160,7 +166,7 @@ def put(self):
160
166
with app_ctx .test_request_context ():
161
167
assert "index" in thing_description .to_dict ().get ("properties" )
162
168
helpers .validate_thing_description (thing_description , app_ctx , schemas_path )
163
-
169
+
164
170
validate_spec (thing .spec )
165
171
166
172
0 commit comments