Response model now handles the 204 no content

This commit is contained in:
Arnulfo Solis
2018-02-01 17:51:51 +01:00
parent 2135294e2e
commit 68fd1b66b5
3 changed files with 11 additions and 7 deletions

View File

@@ -104,6 +104,7 @@ def test_json():
assert results.get('test') == True
def test_empty_json():
app = Sanic('test_json')
@@ -114,7 +115,7 @@ def test_empty_json():
request, response = app.test_client.get('/')
assert response.status == 200
assert response.text == ''
assert response.text == 'null'
def test_invalid_json():