@@ -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