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

Function test_request_stream_audio_only

core/tests/python/tests/test_media.py:82–91  ·  view source on GitHub ↗

The request_stream method should return a stream for audio only.

()

Source from the content-addressed store, hash-verified

80
81
82async def test_request_stream_audio_only():
83 """
84 The request_stream method should return a stream for audio only.
85 """
86 try:
87 stream = await media.Device.request_stream(audio=True, video=False)
88 assert hasattr(stream, "active")
89 except Exception:
90 # Permission denied or no devices available - test passes.
91 pass
92
93
94async def test_request_stream_audio_and_video():

Callers

nothing calls this directly

Calls 1

request_streamMethod · 0.80

Tested by

no test coverage detected