aboutsummaryrefslogtreecommitdiff
path: root/tests/integration
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2022-07-17 21:09:57 +0200
committerDaniel Schadt <kingdread@gmx.de>2022-07-17 21:09:57 +0200
commit9cc960ef8bfcfe98c855c743ceb36c2f09f7a965 (patch)
tree6bbca1fec9128144f5ebab03e9f180e12c3ad633 /tests/integration
parent333a06478b40d2e1b0f2243745807c745005233a (diff)
downloadfietsboek-9cc960ef8bfcfe98c855c743ceb36c2f09f7a965.tar.gz
fietsboek-9cc960ef8bfcfe98c855c743ceb36c2f09f7a965.tar.bz2
fietsboek-9cc960ef8bfcfe98c855c743ceb36c2f09f7a965.zip
run pylint on the test files as well
Diffstat (limited to 'tests/integration')
-rw-r--r--tests/integration/test_browse.py3
-rw-r--r--tests/integration/test_login.py1
-rw-r--r--tests/integration/test_upload.py2
3 files changed, 2 insertions, 4 deletions
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):