validators are now decorators instead
This commit is contained in:
@@ -47,7 +47,7 @@ class TestEndpoints(flask_testing.TestCase):
|
||||
self.assertEqual('spider_man', designer['path'])
|
||||
|
||||
def test_create_designer_missing_data(self):
|
||||
data = {}
|
||||
data = {'name': 'Only name'}
|
||||
response = self.client.post(
|
||||
'/designers/', data=json.dumps(data), content_type='application/json')
|
||||
self.assert400(response)
|
||||
|
||||
Reference in New Issue
Block a user