Fix tests

This commit is contained in:
Nick Mowen 2022-11-02 07:45:34 -06:00
parent f521213462
commit ee08333581

View File

@ -1,11 +1,5 @@
import unittest
import numpy as np
from pydantic import ValidationError
from frigate.config import (
BirdseyeModeEnum,
FrigateConfig,
DetectorTypeEnum,
)
from frigate.config import FrigateConfig
from frigate.ffmpeg_presets import parse_preset_input
@ -17,7 +11,10 @@ class TestFfmpegPresets(unittest.TestCase):
"back": {
"ffmpeg": {
"inputs": [
{"path": "rtsp://10.0.0.1:554/video", "roles": ["detect"]}
{
"path": "rtsp://10.0.0.1:554/video",
"roles": ["detect", "rtmp"],
}
],
"output_args": {
"detect": "-f rawvideo -pix_fmt yuv420p",
@ -33,6 +30,9 @@ class TestFfmpegPresets(unittest.TestCase):
"record": {
"enabled": True,
},
"rtmp": {
"enabled": True,
},
"name": "back",
}
},