You've already forked httpie-cli
mirror of
https://github.com/httpie/cli.git
synced 2025-08-10 22:42:05 +02:00
@@ -366,6 +366,15 @@ class TestExpiredCookies(CookieTestBase):
|
||||
{'name': 'pea', 'path': '/ab'}
|
||||
]
|
||||
),
|
||||
(
|
||||
# Checks we gracefully ignore expires date in invalid format.
|
||||
# <https://github.com/httpie/httpie/issues/963>
|
||||
[
|
||||
('Set-Cookie', 'pfg=; Expires=Sat, 19-Sep-2020 06:58:14 GMT+0000; Max-Age=0; path=/; domain=.tumblr.com; secure; HttpOnly'),
|
||||
],
|
||||
None,
|
||||
[]
|
||||
),
|
||||
(
|
||||
[
|
||||
('Set-Cookie', 'hello=world; Path=/; Expires=Fri, 12 Jun 2020 12:28:55 GMT; HttpOnly'),
|
||||
@@ -373,7 +382,7 @@ class TestExpiredCookies(CookieTestBase):
|
||||
],
|
||||
datetime(2020, 6, 11).timestamp(),
|
||||
[]
|
||||
)
|
||||
),
|
||||
]
|
||||
)
|
||||
def test_get_expired_cookies_manages_multiple_cookie_headers(self, headers, now, expected_expired):
|
||||
|
Reference in New Issue
Block a user