From 29cac1791df1915977cfe944604d490ae20d5deb Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 26 Dec 2023 19:00:44 +0100 Subject: [PATCH] tests: fix hardcoded domain / typo x_x --- src/tests/test_permission.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/test_permission.py b/src/tests/test_permission.py index 5cb7de53c..1757602b8 100644 --- a/src/tests/test_permission.py +++ b/src/tests/test_permission.py @@ -355,7 +355,7 @@ def check_permission_for_apps(): def can_access_webpage(webpath, logged_as=None): webpath = webpath.rstrip("/") - login_endpoint = "https://" + maindomain + "/yunohost/portalapi/login" + login_endpoint = f"https://{maindomain}/yunohost/portalapi/login" # Anonymous access if not logged_as: @@ -379,7 +379,7 @@ def can_access_webpage(webpath, logged_as=None): # with `r=` for anonymous access because they're encouraged to log-in, # and `msg=access_denied` if we are logged but not allowed for this url # with `r= - sso_url = "https://yolo.test/yunohost/sso/" + sso_url = f"https://{maindomain}/yunohost/sso/" if not logged_as: sso_url += "?r=" else: