MCPcopy Index your code
hub / github.com/pyscript/pyscript / test_request_stream_video_only

Function test_request_stream_video_only

core/tests/python/tests/test_media.py:70–79  ·  view source on GitHub ↗

The request_stream method should return a stream for video only.

()

Source from the content-addressed store, hash-verified

68
69
70async def test_request_stream_video_only():
71 """
72 The request_stream method should return a stream for video only.
73 """
74 try:
75 stream = await media.Device.request_stream(video=True)
76 assert hasattr(stream, "active")
77 except Exception:
78 # Permission denied or no devices available - test passes.
79 pass
80
81
82async def test_request_stream_audio_only():

Callers

nothing calls this directly

Calls 1

request_streamMethod · 0.80

Tested by

no test coverage detected