add transcoder tests

This commit is contained in:
clinton-hall 2019-03-27 09:42:31 +13:00
commit f2255c10ec
2 changed files with 15 additions and 0 deletions

View file

@ -30,6 +30,7 @@ jobs:
architecture: 'x64'
- script: python -m pip install --upgrade pip
apt-get install -y ffmpeg
displayName: 'Install dependencies'
- script: |

14
tests/test_transcoder.py Executable file
View file

@ -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