]> jfr.im git - yt-dlp.git/blobdiff - test/conftest.py
[rh:websockets] Migrate websockets to networking framework (#7720)
[yt-dlp.git] / test / conftest.py
index 15549d30b9d8aecd7bce0713c643f28c3ed64a1d..2fbc269e1fb7b4b509a83115d1a5a1ad890033f7 100644 (file)
@@ -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)