From f2255c10ec8f945617884ecbefb68f6b6126847c Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Wed, 27 Mar 2019 09:42:31 +1300 Subject: [PATCH] add transcoder tests --- azure-pipelines.yml | 1 + tests/test_transcoder.py | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100755 tests/test_transcoder.py diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 3f857b99..b5e49ca9 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -30,6 +30,7 @@ jobs: architecture: 'x64' - script: python -m pip install --upgrade pip + apt-get install -y ffmpeg displayName: 'Install dependencies' - script: | diff --git a/tests/test_transcoder.py b/tests/test_transcoder.py new file mode 100755 index 00000000..929e7f23 --- /dev/null +++ b/tests/test_transcoder.py @@ -0,0 +1,14 @@ +#! /usr/bin/env python +from __future__ import print_function +import datetime +import os +import sys +import json +import time +import requests + +import core +from core import logger, transcoder + +def test_transcoder_check(): + assert transcoder.is_video_good(core.TEST_FILE, 0) == True