From a3db8fb4b657a733cba2abeb9609862ffadb6c9c Mon Sep 17 00:00:00 2001 From: Clinton Hall Date: Wed, 27 Mar 2019 10:09:47 +1300 Subject: [PATCH] Test 1 (#1586) * add transcoder tests --- azure-pipelines.yml | 3 +++ tests/test_transcoder.py | 14 ++++++++++++++ 2 files changed, 17 insertions(+) create mode 100755 tests/test_transcoder.py diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 3f857b99..a609703b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -32,6 +32,9 @@ jobs: - script: python -m pip install --upgrade pip displayName: 'Install dependencies' + - script: sudo apt-get install ffmpeg + displayName: 'Install ffmpeg' + - script: | pip install pytest pytest tests --doctest-modules --junitxml=junit/test-results.xml 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