From 9cc960ef8bfcfe98c855c743ceb36c2f09f7a965 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Sun, 17 Jul 2022 21:09:57 +0200 Subject: run pylint on the test files as well --- tests/integration/test_browse.py | 3 --- tests/integration/test_login.py | 1 + tests/integration/test_upload.py | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/integration/test_browse.py b/tests/integration/test_browse.py index cfd1d71..493239f 100644 --- a/tests/integration/test_browse.py +++ b/tests/integration/test_browse.py @@ -3,9 +3,6 @@ import zipfile from contextlib import contextmanager from datetime import datetime -from sqlalchemy import select, func -from webtest import Upload - from testutils import load_gpx_asset from fietsboek import models from fietsboek.models.track import Visibility diff --git a/tests/integration/test_login.py b/tests/integration/test_login.py index cdb1eea..8713ed0 100644 --- a/tests/integration/test_login.py +++ b/tests/integration/test_login.py @@ -5,6 +5,7 @@ from fietsboek import models @pytest.fixture() def testuser(dbsession): + """Provides and returns a test user.""" user = models.User(email='foo@bar.com') user.set_password("foobar") dbsession.add(user) diff --git a/tests/integration/test_upload.py b/tests/integration/test_upload.py index 1903cbe..8f59a8e 100644 --- a/tests/integration/test_upload.py +++ b/tests/integration/test_upload.py @@ -5,7 +5,7 @@ from testutils import load_gpx_asset from fietsboek import models def test_upload_forbidden(testapp, route_path): - upload_form = testapp.get(route_path('upload'), status="4*") + testapp.get(route_path('upload'), status="4*") def test_upload(testapp, dbsession, route_path, logged_in): -- cgit v1.2.3