X-Git-Url: https://jfr.im/git/yt-dlp.git/blobdiff_plain/104a7b5a46dc1805157fb4cc11c05876934d37c1..6e36d17f404556f0e3a43f441c477a71a91877d9:/test/helper.py 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)