From aba56754aaf7b05325b7fb9ce9a1368dbedbcae1 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Thu, 1 Oct 2026 20:23:59 +0200 Subject: fix tests --- tests/integration/test_upload.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'tests/integration/test_upload.py') diff --git a/tests/integration/test_upload.py b/tests/integration/test_upload.py index f09b468..4191899 100644 --- a/tests/integration/test_upload.py +++ b/tests/integration/test_upload.py @@ -4,13 +4,19 @@ 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): + 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')) -- cgit v1.2.3