diff options
author | coletdjnz <coletdjnz@protonmail.com> | 2024-05-11 10:06:58 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-11 10:06:58 +1200 |
commit | 3c7a287e281d9f9a353dce8902ff78a84c24a040 (patch) | |
tree | e8597c2d8192898169300ab21ae46ce2003f7122 /test/helper.py | |
parent | 98d71d8c5e5dab08b561ee6f137e968d2a004262 (diff) |
[test] Add HTTP proxy tests (#9578)
Also fixes HTTPS proxies for curl_cffi
Authored by: coletdjnz
Diffstat (limited to 'test/helper.py')
-rw-r--r-- | test/helper.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/helper.py b/test/helper.py index 7760fd8d7..e7473120d 100644 --- a/test/helper.py +++ b/test/helper.py @@ -338,3 +338,8 @@ def http_server_port(httpd): def verify_address_availability(address): if find_available_port(address) is None: pytest.skip(f'Unable to bind to source address {address} (address may not exist)') + + +def validate_and_send(rh, req): + rh.validate(req) + return rh.send(req) |