adapted test test_webapp.py

This commit is contained in:
Luis Aleixo 2023-03-17 12:09:15 +01:00
parent 1146cf76c9
commit 24e530cb11

View file

@ -103,7 +103,7 @@ class TestOpenApp(tornado.testing.AsyncHTTPTestCase):
async def test_permalink_urls(http_server_client, baseline_form):
base_url = 'proto://hostname/prefix'
permalink_data = generate_permalink(base_url, "/calculator", baseline_form)
permalink_data = generate_permalink(base_url, lambda: "", lambda: "/calculator", baseline_form)
expected = f'{base_url}/calculator?exposed_coffee_break_option={baseline_form.exposed_coffee_break_option}&'
assert permalink_data['link'].startswith(expected)