diff options
author | Daniel Schadt <kingdread@gmx.de> | 2023-08-30 19:52:42 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2023-08-30 19:52:42 +0200 |
commit | 15c63fcf923a1a996fa9aa02c33eee6e68850e8f (patch) | |
tree | f9a77198078f1bbb09e0ef841814ee918ab10c9f /tests/integration/test_upload.py | |
parent | 0d389ba5af89bad45bd786aad0ff05f405658d8a (diff) | |
download | fietsboek-15c63fcf923a1a996fa9aa02c33eee6e68850e8f.tar.gz fietsboek-15c63fcf923a1a996fa9aa02c33eee6e68850e8f.tar.bz2 fietsboek-15c63fcf923a1a996fa9aa02c33eee6e68850e8f.zip |
fix upload test
The new favourite icon messes up the old HTML, so we need to adjust the
test's expectations.
Diffstat (limited to 'tests/integration/test_upload.py')
-rw-r--r-- | tests/integration/test_upload.py | 4 |
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's Testtrack</h1>" in result.text + assert re.search("<h1>\\s*FoOoOo Bar's Testtrack", result.text) # Step 4: Ensure the track is stored right track = dbsession.execute(select(models.Track)).scalar_one() |