refactor: remove deprecated config files and update logging in account management scripts
This commit is contained in:
@@ -1,5 +0,0 @@
|
|||||||
[Account]
|
|
||||||
email = dounpuv@mailto.plus
|
|
||||||
password = ccz14321@
|
|
||||||
first_name = cheng
|
|
||||||
last_name = zhen
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
[Account]
|
|
||||||
email = xxx@mailto.plus
|
|
||||||
password = xxxx
|
|
||||||
first_name = xxx
|
|
||||||
last_name = xxx
|
|
||||||
@@ -189,6 +189,7 @@ def delete_account(browser, tab):
|
|||||||
|
|
||||||
def get_cursor_session_token(tab):
|
def get_cursor_session_token(tab):
|
||||||
"""获取cursor session token"""
|
"""获取cursor session token"""
|
||||||
|
print("开始获取cookie")
|
||||||
cookies = tab.cookies()
|
cookies = tab.cookies()
|
||||||
cursor_session_token = None
|
cursor_session_token = None
|
||||||
for cookie in cookies:
|
for cookie in cookies:
|
||||||
@@ -209,7 +210,6 @@ def update_cursor_auth(email=None, access_token=None, refresh_token=None):
|
|||||||
|
|
||||||
|
|
||||||
def sign_up_account(browser, tab):
|
def sign_up_account(browser, tab):
|
||||||
"""注册账户流程"""
|
|
||||||
print("\n开始注册新账户...")
|
print("\n开始注册新账户...")
|
||||||
tab.get(sign_up_url)
|
tab.get(sign_up_url)
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ class EmailVerificationHandler:
|
|||||||
# 打开新标签页访问临时邮箱
|
# 打开新标签页访问临时邮箱
|
||||||
tab_mail = self.browser.new_tab(self.mail_url)
|
tab_mail = self.browser.new_tab(self.mail_url)
|
||||||
self.browser.activate_tab(tab_mail)
|
self.browser.activate_tab(tab_mail)
|
||||||
logging.info("打开邮箱页面")
|
print("打开邮箱页面")
|
||||||
|
|
||||||
# 输入用户名
|
# 输入用户名
|
||||||
self._input_username(tab_mail, username)
|
self._input_username(tab_mail, username)
|
||||||
|
|||||||
Reference in New Issue
Block a user