mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-06 21:21:12 -07:00
parent
f5891459c2
commit
410aab4c58
2 changed files with 36 additions and 21 deletions
|
@ -29,7 +29,7 @@ jobs:
|
||||||
versionSpec: '$(python.version)'
|
versionSpec: '$(python.version)'
|
||||||
architecture: 'x64'
|
architecture: 'x64'
|
||||||
|
|
||||||
- script: python -m pip install --upgrade pip && pip install -r libs/requirements.txt
|
- script: python -m pip install --upgrade pip
|
||||||
displayName: 'Install dependencies'
|
displayName: 'Install dependencies'
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
|
|
|
@ -1,33 +1,48 @@
|
||||||
#! /usr/bin/env python
|
#! /usr/bin/env python
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
sys.path.extend(["..","."])
|
|
||||||
|
|
||||||
|
def test_eol():
|
||||||
import eol
|
import eol
|
||||||
eol.check()
|
eol.check()
|
||||||
|
|
||||||
|
def test_cleanup():
|
||||||
import cleanup
|
import cleanup
|
||||||
cleanup.clean(cleanup.FOLDER_STRUCTURE)
|
cleanup.clean(cleanup.FOLDER_STRUCTURE)
|
||||||
|
|
||||||
|
def test_import_core():
|
||||||
import core
|
import core
|
||||||
from core import logger, main_db
|
from core import logger, main_db
|
||||||
|
|
||||||
|
def test_import_core_auto_process():
|
||||||
from core.auto_process import comics, games, movies, music, tv
|
from core.auto_process import comics, games, movies, music, tv
|
||||||
from core.auto_process.common import ProcessResult
|
from core.auto_process.common import ProcessResult
|
||||||
|
|
||||||
|
def test_import_core_plugins():
|
||||||
from core.plugins.downloaders.nzb.utils import get_nzoid
|
from core.plugins.downloaders.nzb.utils import get_nzoid
|
||||||
from core.plugins.plex import plex_update
|
from core.plugins.plex import plex_update
|
||||||
|
|
||||||
|
def test_import_core_user_scripts():
|
||||||
from core.user_scripts import external_script
|
from core.user_scripts import external_script
|
||||||
|
|
||||||
|
def test_import_six():
|
||||||
|
from six import text_type
|
||||||
|
|
||||||
|
def test_import_core_utils():
|
||||||
from core.utils import (
|
from core.utils import (
|
||||||
char_replace, clean_dir, convert_to_ascii,
|
char_replace, clean_dir, convert_to_ascii,
|
||||||
extract_files, get_dirs, get_download_info,
|
extract_files, get_dirs, get_download_info,
|
||||||
update_download_info_status,
|
update_download_info_status, replace_links,
|
||||||
)
|
)
|
||||||
|
|
||||||
# Initialize the config
|
import core
|
||||||
|
from core import logger, main_db
|
||||||
|
|
||||||
|
def test_initial():
|
||||||
core.initialize()
|
core.initialize()
|
||||||
del core.MYAPP
|
del core.MYAPP
|
||||||
|
|
||||||
def test_answer():
|
def test_core_parameters():
|
||||||
assert core.CHECK_MEDIA == 1
|
assert core.CHECK_MEDIA == 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue