aboutsummaryrefslogtreecommitdiff
path: root/tests/integration
diff options
context:
space:
mode:
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):