* add transcoder tests
This commit is contained in:
Clinton Hall 2019-03-27 10:09:47 +13:00 committed by GitHub
parent bdec673bb9
commit a3db8fb4b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 0 deletions

View file

@ -32,6 +32,9 @@ jobs:
- script: python -m pip install --upgrade pip - script: python -m pip install --upgrade pip
displayName: 'Install dependencies' displayName: 'Install dependencies'
- script: sudo apt-get install ffmpeg
displayName: 'Install ffmpeg'
- script: | - script: |
pip install pytest pip install pytest
pytest tests --doctest-modules --junitxml=junit/test-results.xml pytest tests --doctest-modules --junitxml=junit/test-results.xml

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