Remove unnecessary tests

This commit is contained in:
Jonah Lawrence 2022-10-18 19:10:43 -06:00 committed by GitHub
parent b1d11530a3
commit 18d8ee6666
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 13 deletions

View file

@ -1 +0,0 @@
<svg height='50' width='200'><text x='0' y='25'>{{ text }}</text></svg>

Before

Width:  |  Height:  |  Size: 72 B

View file

@ -114,18 +114,6 @@ def test_escaping_without_template_filename(app, client, req_ctx):
assert flask.render_template("mail.txt", foo="<test>") == "<test> Mail"
def test_escaping_svg(app, client):
@app.route("/")
def index():
return flask.render_template("escaping_template.svg", text="<test>")
rv = client.get("/")
assert (
rv.data
== b"<svg height='50' width='200'><text x='0' y='25'>&lt;test&gt;</text></svg>"
)
def test_macros(app, req_ctx):
macro = flask.get_template_attribute("_macro.html", "hello")
assert macro("World") == "Hello World!"