|
|
@ -975,6 +975,7 @@ def test_jsonify_no_prettyprint(): |
|
|
|
flask.jsonify(uncompressed_msg), 200) |
|
|
|
flask.jsonify(uncompressed_msg), 200) |
|
|
|
assert rv.data == compressed_msg |
|
|
|
assert rv.data == compressed_msg |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_jsonify_prettyprint(): |
|
|
|
def test_jsonify_prettyprint(): |
|
|
|
app = flask.Flask(__name__) |
|
|
|
app = flask.Flask(__name__) |
|
|
|
app.config.update({"JSONIFY_PRETTYPRINT_REGULAR": True}) |
|
|
|
app.config.update({"JSONIFY_PRETTYPRINT_REGULAR": True}) |
|
|
@ -987,6 +988,7 @@ def test_jsonify_prettyprint(): |
|
|
|
flask.jsonify(compressed_msg), 200) |
|
|
|
flask.jsonify(compressed_msg), 200) |
|
|
|
assert rv.data == pretty_response |
|
|
|
assert rv.data == pretty_response |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_url_generation(): |
|
|
|
def test_url_generation(): |
|
|
|
app = flask.Flask(__name__) |
|
|
|
app = flask.Flask(__name__) |
|
|
|
|
|
|
|
|
|
|
|