httpie-cli/tests
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 a4eb5c4498.

* Revert "Revert "updated tests""

This reverts commit d242e21bce.

* 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
..
client_certs Added test client SSL certs 2015-01-23 23:56:08 +01:00
fixtures Added --show-redirects and --max-redirects 2016-02-29 14:12:09 +08:00
conftest.py Fix pytest configuration 2018-06-09 11:59:34 +02:00
README.rst Update links 2017-03-10 11:27:38 +01:00
test_auth_plugins.py Refactor built-in plugin registry to avoid circular imports 2020-05-26 10:07:34 +02:00
test_auth.py Add one-by-one processing of each HTTP request or response and --offline 2019-09-03 17:14:39 +02:00
test_binary.py Make test_binary_suppresses_* deterministic 2019-08-29 09:46:17 +02:00
test_cli.py Add httpie.status 2019-09-16 13:26:18 +02:00
test_compress.py Refactor --compress tests 2019-08-29 11:46:08 +02:00
test_config.py Str env vars 2020-05-23 12:14:09 +02:00
test_defaults.py Change default JSON Accept to application/json, */*;q=0.5 2020-04-18 12:03:38 +02:00
test_docs.py Fix tests 2019-12-04 18:09:51 +01:00
test_downloads.py Add one-by-one processing of each HTTP request or response and --offline 2019-09-03 17:14:39 +02:00
test_errors.py PEP8 2019-12-02 17:46:40 +01:00
test_exit_status.py Add httpie.status 2019-09-16 13:26:18 +02:00
test_httpie.py Ignore --download with --offline 2020-04-16 11:41:12 +02:00
test_output.py Use : instead of = in `--format-options 2020-05-28 14:24:15 +02:00
test_redirects.py Add httpie.status 2019-09-16 13:26:18 +02:00
test_regressions.py Update links 2017-03-10 11:27:38 +01:00
test_sessions.py Remove expired cookies (#929) 2020-06-15 22:28:04 +02:00
test_ssl.py Add support for --ciphers (#870) 2020-05-23 13:26:06 +02:00
test_stream.py Rename TestEnvironment to MockEnvironment to avoid pytest warnings 2017-12-28 18:17:48 +01:00
test_unicode.py Cleanup tests 2016-03-03 18:50:18 +08:00
test_uploads.py Custom file upload MIME type (#927) 2020-06-08 17:59:41 +02:00
test_windows.py Add one-by-one processing of each HTTP request or response and --offline 2019-09-03 17:14:39 +02:00
utils.py Use : instead of = in `--format-options 2020-05-28 14:24:15 +02:00

HTTPie Test Suite
=================


Please see `CONTRIBUTING`_.


.. _CONTRIBUTING: https://github.com/jakubroztocil/httpie/blob/master/CONTRIBUTING.rst