From c7fdb2684bea5ba5e91f8c8b4beb6860a5bc784d Mon Sep 17 00:00:00 2001 From: Martin Date: Sun, 13 Nov 2016 21:35:09 +0100 Subject: [PATCH] test that a jsonschema validates ok --- tests/test_web.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_web.py b/tests/test_web.py index 0766b41..02310ba 100644 --- a/tests/test_web.py +++ b/tests/test_web.py @@ -110,3 +110,5 @@ class TestValidators(flask_testing.TestCase): '/', data=json.dumps({'foo': 'bar'}), content_type='application/json').data) self.assertEqual(b"'abc' is not of type 'number'", self.client.post( '/', data=json.dumps({'name': 'bar', 'age': 'abc'}), content_type='application/json').data) + self.assertEqual(b'ok', self.client.post( + '/', data=json.dumps({'name': 'bar', 'age': 55}), content_type='application/json').data)