Set up CI with Azure Pipelines (#1573)

* Set up CI with Azure Pipelines

* test all python versions

* rename test file and set to run from subdir.
This commit is contained in:
Clinton Hall 2019-03-11 22:40:59 +13:00 committed by GitHub
commit f5891459c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 91 additions and 72 deletions

33
tests/test_initialize.py Executable file
View file

@ -0,0 +1,33 @@
#! /usr/bin/env python
from __future__ import print_function
import datetime
import os
import sys
sys.path.extend(["..","."])
import eol
eol.check()
import cleanup
cleanup.clean(cleanup.FOLDER_STRUCTURE)
import core
from core import logger, main_db
from core.auto_process import comics, games, movies, music, tv
from core.auto_process.common import ProcessResult
from core.plugins.downloaders.nzb.utils import get_nzoid
from core.plugins.plex import plex_update
from core.user_scripts import external_script
from core.utils import (
char_replace, clean_dir, convert_to_ascii,
extract_files, get_dirs, get_download_info,
update_download_info_status,
)
# Initialize the config
core.initialize()
del core.MYAPP
def test_answer():
assert core.CHECK_MEDIA == 1