diff --git a/tests/test_schemas.py b/tests/test_schemas.py index e8a8cdb6b..8ce5a41e6 100644 --- a/tests/test_schemas.py +++ b/tests/test_schemas.py @@ -217,22 +217,21 @@ class TestRouterGeneratedSchema(TestCase): ] )) post_action = ('custom_action_post', - coreapi.Link( - url='/example/{pk}/custom_action/', - action='post', - encoding='application/json', - fields=[ - coreapi.Field('pk', required=True, location='path'), - coreapi.Field('c', required=True, location='form'), - coreapi.Field('d', required=False, location='form'), - ] - )) + coreapi.Link( + url='/example/{pk}/custom_action/', + action='post', + encoding='application/json', + fields=[ + coreapi.Field('pk', required=True, location='path'), + coreapi.Field('c', required=True, location='form'), + coreapi.Field('d', required=False, location='form'), + ] + )) self.assertIn(put_action, response.data['example'].items()) self.assertIn(post_action, response.data['example'].items()) - @unittest.skipUnless(coreapi, 'coreapi is not installed') class TestSchemaGenerator(TestCase): def test_view(self):