diff --git a/tests/test_app.py b/tests/test_app.py index 0cf9bfb..f18f986 100644 --- a/tests/test_app.py +++ b/tests/test_app.py @@ -155,5 +155,5 @@ def test_no_inline_js_with_content(client, cfg): title = "Ola's \"test\" " r = client.post(f"/admin/edit/{post_id}", data={"csrf": token, "title": title, "body": "x", "action": "save"}) html = client.get(r.headers["Location"]).text - assert "onsubmit" not in html and "onclick" not in html + assert "onsubmit=" not in html and "onclick=" not in html assert "Ola's" in html