X-Git-Url: https://jfr.im/git/yt-dlp.git/blobdiff_plain/fcd6a76adc49d5cd8783985c7ce35384b72e545f..ccfd70f4c24b579c72123ca76ab50164f8f122b7:/test/conftest.py diff --git a/test/conftest.py b/test/conftest.py index 15549d30b..2fbc269e1 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -19,3 +19,8 @@ def handler(request): pytest.skip(f'{RH_KEY} request handler is not available') return functools.partial(handler, logger=FakeLogger) + + +def validate_and_send(rh, req): + rh.validate(req) + return rh.send(req)