validators are now decorators instead

This commit is contained in:
Martin
2016-11-13 19:38:45 +01:00
parent 66b1787722
commit d854ff9798
7 changed files with 172 additions and 55 deletions
+1 -1
View File
@@ -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)