From ddd7145153d5a52e74f27a4d7f0750f72d84a17d Mon Sep 17 00:00:00 2001 From: Miroslav Batchkarov Date: Wed, 7 Jun 2017 10:03:27 +0100 Subject: [PATCH] check json is None if body is not JSON --- tests/test_blueprints.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_blueprints.py b/tests/test_blueprints.py index d9f5cd61..9ab387be 100644 --- a/tests/test_blueprints.py +++ b/tests/test_blueprints.py @@ -41,6 +41,7 @@ def test_bp_strict_slash(): request, response = app.test_client.get('/get') assert response.text == 'OK' + assert response.json == None request, response = app.test_client.get('/get/') assert response.status == 404