mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-22 06:13:19 -07:00
add transcoder tests
This commit is contained in:
parent
bdec673bb9
commit
f2255c10ec
2 changed files with 15 additions and 0 deletions
|
@ -30,6 +30,7 @@ jobs:
|
||||||
architecture: 'x64'
|
architecture: 'x64'
|
||||||
|
|
||||||
- script: python -m pip install --upgrade pip
|
- script: python -m pip install --upgrade pip
|
||||||
|
apt-get install -y ffmpeg
|
||||||
displayName: 'Install dependencies'
|
displayName: 'Install dependencies'
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
|
|
14
tests/test_transcoder.py
Executable file
14
tests/test_transcoder.py
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue