aboutsummaryrefslogtreecommitdiff
path: root/tests/integration/test_upload.py
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2023-09-11 21:32:10 +0200
committerDaniel Schadt <kingdread@gmx.de>2023-09-11 21:32:10 +0200
commit9550be82608f54407f2306d13045d5cf90e8d56e (patch)
treed7a27ce4e3a932ed2d0dc21d011ed85c2fc322fa /tests/integration/test_upload.py
parent68e49e1e879a32c0f0d764f927923ca42706e593 (diff)
parent6b320b11ac2f86e9f63f6f9998db9dbbac56849d (diff)
downloadfietsboek-9550be82608f54407f2306d13045d5cf90e8d56e.tar.gz
fietsboek-9550be82608f54407f2306d13045d5cf90e8d56e.tar.bz2
fietsboek-9550be82608f54407f2306d13045d5cf90e8d56e.zip
Merge branch 'favourites'
Diffstat (limited to 'tests/integration/test_upload.py')
-rw-r--r--tests/integration/test_upload.py4
1 files changed, 3 insertions, 1 deletions
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 "<h1>FoOoOo Bar&#39;s Testtrack</h1>" in result.text
+ assert re.search("<h1>\\s*FoOoOo Bar&#39;s Testtrack", result.text)
# Step 4: Ensure the track is stored right
track = dbsession.execute(select(models.Track)).scalar_one()