From 783ce58991db56455b48ef6ea22931a24652cfe8 Mon Sep 17 00:00:00 2001 From: Patrick Smith Date: Tue, 16 Oct 2018 21:20:31 -0400 Subject: [PATCH] Formatting fix --- atst/routes/errors.py | 1 + tests/routes/test_errors.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/atst/routes/errors.py b/atst/routes/errors.py index 7b6939d9..b3e7effd 100644 --- a/atst/routes/errors.py +++ b/atst/routes/errors.py @@ -25,6 +25,7 @@ def make_error_pages(app): return render_template("error.html", message="Log in Failed"), 401 @app.errorhandler(CSRFError) + # pylint: disable=unused-variable def session_expired(e): log_error(e) return redirect(url_for("atst.root", sessionExpired=True, next=request.path)) diff --git a/tests/routes/test_errors.py b/tests/routes/test_errors.py index 1eb4091f..e4d316cf 100644 --- a/tests/routes/test_errors.py +++ b/tests/routes/test_errors.py @@ -1,10 +1,9 @@ - def test_csrf_error(app, client): app.config.update({"WTF_CSRF_ENABLED": True}) response = client.post( "/requests/new/1", - headers={ "Content-Type": "application/x-www-form-urlencoded" }, + headers={"Content-Type": "application/x-www-form-urlencoded"}, data="csrf_token=invalid_token", follow_redirects=True, )