mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Fix description comment of _generate_auth_url()
CURA-7427
This commit is contained in:
parent
f6ebac6e34
commit
32efb8d7bb
2 changed files with 11 additions and 8 deletions
|
@ -7,7 +7,7 @@ from PyQt5.QtGui import QDesktopServices
|
|||
|
||||
from UM.Preferences import Preferences
|
||||
from cura.OAuth2.AuthorizationHelpers import AuthorizationHelpers, TOKEN_TIMESTAMP_FORMAT
|
||||
from cura.OAuth2.AuthorizationService import AuthorizationService, MYCLOUD_LOGOFF
|
||||
from cura.OAuth2.AuthorizationService import AuthorizationService, MYCLOUD_LOGOFF_URL
|
||||
from cura.OAuth2.LocalAuthorizationServer import LocalAuthorizationServer
|
||||
from cura.OAuth2.Models import OAuth2Settings, AuthenticationResponse, UserProfile
|
||||
|
||||
|
@ -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 + "?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 + "?next=" in auth_url
|
||||
assert MYCLOUD_LOGOFF_URL + "?next=" in auth_url
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue