mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-11-01 19:30:33 +03:00
Optimize Python Tests (#24823)
* Optimize tests * Address comments * Fix test
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
from frigate.config.config import stream_info_retriever
|
||||
|
||||
|
||||
def _unreachable_stream_info(ffmpeg, path: str) -> dict:
|
||||
return {"width": 0, "height": 0, "fourcc": None}
|
||||
|
||||
|
||||
# Validating a camera without detect dimensions probes its stream. Test streams
|
||||
# are unreachable, so return the failed probe result instead of waiting ~12s per
|
||||
# stream for ffprobe to time out
|
||||
stream_info_retriever.get_stream_info = _unreachable_stream_info
|
||||
|
||||
Reference in New Issue
Block a user