Browse Source

Fix failing test

CURA-8441
Konstantinos Karmas 3 years ago
parent
commit
3be4b1a441
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/TestOAuth2.py

+ 2 - 2
tests/TestOAuth2.py

@@ -238,7 +238,7 @@ def test__generate_auth_url() -> None:
         "response_type": "code"
     }
     auth_url = authorization_service._generate_auth_url(query_parameters_dict, force_browser_logout = False)
-    assert MYCLOUD_LOGOFF_URL + "?next=" not in auth_url
+    assert MYCLOUD_LOGOFF_URL + "&next=" not in auth_url
 
     auth_url = authorization_service._generate_auth_url(query_parameters_dict, force_browser_logout = True)
-    assert MYCLOUD_LOGOFF_URL + "?next=" in auth_url
+    assert MYCLOUD_LOGOFF_URL + "&next=" in auth_url