check json is None if body is not JSON
This commit is contained in:
parent
3f22b644b6
commit
ddd7145153
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user