diff options
author | coletdjnz <coletdjnz@protonmail.com> | 2023-11-20 08:04:04 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-20 08:04:04 +0000 |
commit | ccfd70f4c24b579c72123ca76ab50164f8f122b7 (patch) | |
tree | 51641546cbe1365db94c491661e6d946ee4772ee /test/conftest.py | |
parent | 45d82be65f71bb05506bd55376c6fdb36bc54142 (diff) |
[rh:websockets] Migrate websockets to networking framework (#7720)
* Adds a basic WebSocket framework
* Introduces new minimum `websockets` version of 12.0
* Deprecates `WebSocketsWrapper`
Fixes https://github.com/yt-dlp/yt-dlp/issues/8439
Authored by: coletdjnz
Diffstat (limited to 'test/conftest.py')
-rw-r--r-- | test/conftest.py | 5 |
1 files changed, 5 insertions, 0 deletions
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) |