diff options
Diffstat (limited to 'tests/integration/test_upload.py')
| -rw-r--r-- | tests/integration/test_upload.py | 10 |
1 files changed, 8 insertions, 2 deletions
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')) |
