Skip to content

Commit

Permalink
tests: don't rely on user-provided buvid3
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemo2011 committed Feb 3, 2025
1 parent b8805bb commit acf4502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def get_credential():
BILI_BUVID3 = os.getenv("BILI_BUVID3")
BILI_DEDEUSERID = os.getenv("BILI_DEDEUSERID")

if not BILI_SESSDATA or not BILI_CSRF or not BILI_BUVID3 or not BILI_DEDEUSERID:
if not BILI_SESSDATA or not BILI_CSRF or not BILI_DEDEUSERID:
raise Exception("缺少环境变量")

return Credential(BILI_SESSDATA, BILI_CSRF, BILI_BUVID3, BILI_DEDEUSERID)

0 comments on commit acf4502

Please sign in to comment.