mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-06 21:21:12 -07:00
parent
bdec673bb9
commit
a3db8fb4b6
2 changed files with 17 additions and 0 deletions
|
@ -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
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