diff --git a/atst/handlers/request_new.py b/atst/handlers/request_new.py index 595c4dd2..6e892428 100644 --- a/atst/handlers/request_new.py +++ b/atst/handlers/request_new.py @@ -6,7 +6,6 @@ from atst.forms.funding import FundingForm from atst.forms.readiness import ReadinessForm from atst.forms.review import ReviewForm import tornado.httputil -from tornado.httpclient import HTTPError class RequestNew(BaseHandler): diff --git a/script/test b/script/test index 9682f660..de405886 100755 --- a/script/test +++ b/script/test @@ -6,7 +6,7 @@ set -e # Ensure we are in the app root directory (not the /script directory) cd "$(dirname "${0}")/.." -pipenv run pylint --errors-only atst +pipenv run pylint app.py atst/ tests/ # Run unit tests pipenv run python -m pytest -s $* diff --git a/tests/test_auth.py b/tests/test_auth.py index e6a49d47..f99deee9 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -47,7 +47,7 @@ def test_login_via_dev_endpoint(app, http_client, base_url): @pytest.mark.gen_test @pytest.mark.skip(reason="need to work out auth error user paths") def test_login_with_invalid_bearer_token(http_client, base_url): - response = yield http_client.fetch( + _response = yield http_client.fetch( base_url + "/home", raise_error=False, headers={"Cookie": "bearer-token=anything"},