1
0
mirror of https://github.com/httpie/cli.git synced 2025-02-21 19:06:29 +02:00
Eyitayo Ogunbiyi 9c68d7dd87
Remove expired cookies (#929)
* added a test for expiring cookies

* updated tests

* set up util for extracting expired cookies from response header

* Revert "updated tests"

This reverts commit a4eb5c4498d24816c971578216d351d892293549.

* Revert "Revert "updated tests""

This reverts commit d242e21bce8101dab03fa52810bc5d2789c9307e.

* added more functionality to get-expired-cookies

* add 'clear expired cookies' from session.json files

* refactored get_expired_cookies

* fixed formatting issues

* ensured key exists in cookie_header dict

* fixed linting errors

* removed unused import

* Added tests for get_expired_cookies util

* Added additional test for get_expired_cookies

* added remove_expired_cookies method directly to sessions class

* extracted logic to clear cookies to sessions.py

* refactored utils

* added tests to check expired cookies being removed from session obj

* added type annotations for methods

* Refactored test_sessions

* Seperated out expiry related tests into own class

* Refactored get_expired_cookies in utils

* Refactored remove cookie methods

* fixed linting errors

* fixed indentation and also pluralized test class name

* removed inheritance from SessionTestbase class

* Moved related test to TestExpiredCookies class

Co-authored-by: kbanc <katherine.bancoft@gmail.com>
2020-06-15 22:28:04 +02:00
..
2020-06-08 18:02:04 +02:00
2020-04-18 12:57:56 +02:00
2019-09-16 13:26:18 +02:00
2020-06-15 22:28:04 +02:00
2019-08-29 08:53:56 +02:00
2020-04-13 17:37:27 +02:00
2019-08-31 15:17:10 +02:00
2020-06-15 22:28:04 +02:00
2020-05-23 20:30:25 +02:00
2019-12-02 00:58:10 +01:00
2020-06-15 22:28:04 +02:00