From 15c63fcf923a1a996fa9aa02c33eee6e68850e8f Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Wed, 30 Aug 2023 19:52:42 +0200 Subject: fix upload test The new favourite icon messes up the old HTML, so we need to adjust the test's expectations. --- tests/integration/test_upload.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/integration/test_upload.py b/tests/integration/test_upload.py index 454785f..f09b468 100644 --- a/tests/integration/test_upload.py +++ b/tests/integration/test_upload.py @@ -1,3 +1,5 @@ +import re + from sqlalchemy import select, func from webtest import Upload @@ -30,7 +32,7 @@ def test_upload(testapp, dbsession, route_path, logged_in): ] result = finish_form.submit().maybe_follow() - assert "

FoOoOo Bar's Testtrack

" in result.text + assert re.search("

\\s*FoOoOo Bar's Testtrack", result.text) # Step 4: Ensure the track is stored right track = dbsession.execute(select(models.Track)).scalar_one() -- cgit v1.2.3