Fix twitter cookie parsing regression (#196)

Co-authored-by: Yin <mbair@gmail.com>
This commit is contained in:
Pnant
2026-03-23 18:35:47 +08:00
committed by GitHub
parent 7e66abe636
commit 0c6c45a010
2 changed files with 34 additions and 15 deletions
+12
View File
@@ -30,6 +30,18 @@ class TestCLI:
assert "Agent Reach" in captured.out
assert "" in captured.out
def test_parse_twitter_cookie_input_separate_values(self):
auth_token, ct0 = cli._parse_twitter_cookie_input("token123 ct0abc")
assert auth_token == "token123"
assert ct0 == "ct0abc"
def test_parse_twitter_cookie_input_cookie_header(self):
auth_token, ct0 = cli._parse_twitter_cookie_input(
"auth_token=token123; ct0=ct0abc; other=value"
)
assert auth_token == "token123"
assert ct0 == "ct0abc"
class TestCheckUpdateRetry:
def test_retry_timeout_classification(self):