Fix failing test

CURA-8441
This commit is contained in:
Konstantinos Karmas 2021-08-09 12:42:11 +02:00
parent 5bf24ed678
commit 3be4b1a441

View File

@ -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