From 5a87d79e02f62e58cd5781eb629aa8a2452787e1 Mon Sep 17 00:00:00 2001 From: fourjr <28086837+fourjr@users.noreply.github.com> Date: Thu, 28 Jun 2018 18:22:15 +0800 Subject: [PATCH] Add tests --- tests/test_helpers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_helpers.py b/tests/test_helpers.py index ae1c0805..a0e9ab33 100644 --- a/tests/test_helpers.py +++ b/tests/test_helpers.py @@ -243,6 +243,9 @@ class TestJSON(object): rv_uuid = uuid.UUID(rv_x) assert rv_uuid == test_uuid + def test_jsonify_status(self, app, client): + flask.jsonify({'code': 400}, status=400) + def test_json_attr(self, app, client): @app.route('/add', methods=['POST'])