Create json_dumps() method on new EnvironBuilder

This commit is contained in:
Daniel Pope 2019-05-31 17:37:18 +01:00
parent 976dfedaa9
commit c7f56c5a55
3 changed files with 11 additions and 14 deletions

View file

@ -136,11 +136,6 @@ def test_environbuilder_json_dumps(app):
assert eb.input_stream.read().decode("utf8") == u'"\u20ac"'
def test_environbuilder_json_dumps_static():
"""EnvironBuilder.json_dumps() can be called as a static method."""
assert EnvironBuilder.json_dumps(u"\u20ac") == u'"\\u20ac"'
def test_blueprint_with_subdomain():
app = flask.Flask(__name__, subdomain_matching=True)
app.config["SERVER_NAME"] = "example.com:1234"