aboutsummaryrefslogtreecommitdiff
path: root/tests/integration
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2026-10-08 19:20:43 +0200
committerDaniel Schadt <kingdread@gmx.de>2026-10-08 19:20:43 +0200
commitc1b6c50bba7564b1a5d099aadb062161badaba19 (patch)
treef3034d052936fe5cfee8003cfd63a4ada5f2b100 /tests/integration
parent930f961259136a2b3d52db98873f93baea27a81b (diff)
parent31e1971c64aafa78ff55033ff1ceb4169e41d574 (diff)
downloadfietsboek-master.tar.gz
fietsboek-master.tar.bz2
fietsboek-master.zip
Merge branch 'climbs'HEADmaster
Diffstat (limited to 'tests/integration')
-rw-r--r--tests/integration/test_upload.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/integration/test_upload.py b/tests/integration/test_upload.py
index 8d51512..1b7516a 100644
--- a/tests/integration/test_upload.py
+++ b/tests/integration/test_upload.py
@@ -4,13 +4,20 @@ from sqlalchemy import select, func
from webtest import Upload
from testutils import load_gpx_asset
-from fietsboek import models
+from fietsboek import actions, models
def test_upload_forbidden(testapp, route_path):
testapp.get(route_path('upload'), status="4*")
-def test_upload(testapp, dbsession, route_path, logged_in):
+def test_upload(testapp, dbsession, route_path, logged_in, tm, monkeypatch):
+ # pylint: disable=too-many-positional-arguments
+ monkeypatch.setattr(
+ actions,
+ "extract_climbs_background",
+ lambda _request, _track_id: None,
+ )
+
# Step 1: Go to the upload form
upload_site = testapp.get(route_path('upload'))