def test_start(self, mock_thread, mock_log_debug): pass config = { "template": "uri=\"{source[uri]}\"", "type": "ffmpeg", "parameters": { "param1": { "default": 1234 }, "param2": {}, "param3": { "default": 1234 } } } testpipeline = FFmpegPipeline(1, config, "models") request = { "source": { "uri": "testuri" }, "destination": { "hosts": ["host1"], "type": "kafka", "topic": "testtopic", "uri": "testuri" } } testpipeline.start(request) mock_log_debug.assert_called_with([ 'ffmpeg', 'uri=testuri', '-f', 'iemetadata', '-source_url', 'testuri', 'kafka://host1/testtopic' ])
def test_start(self, mock_thread, mock_log_debug): pass config = { "template": "uri=\"{source[uri]}\"", "type": "ffmpeg", "parameters": { "param1": { "default": 1234 }, "param2": {}, "param3": { "default": 1234 } } } testpipeline = FFmpegPipeline(1, config, "models") request = { "source": { "uri": "testuri" }, "destination": { "hosts": ["host1"], "type": "kafka", "topic": "testtopic", "uri": "testuri" } } testpipeline.start(request)