def database():
    return threadDatabase(threadConfiguration().get_configuration())
Beispiel #2
0
def db():
    """creates global variable to be use in multiple tests"""
    config = threadConfiguration()
    return threadDatabase(config.get_configuration())
Beispiel #3
0
import utils.logger as logger
from utils.config import threadConfiguration
from utils.database import threadDatabase
from utils.feed import NewsAPI

# from flask_apscheduler import APScheduler
from apscheduler.schedulers.background import BackgroundScheduler

log = logger.setup_logger("root")
configFile = threadConfiguration()
log.debug("initalized logger")

database_client = threadDatabase(configFile.get_configuration())
appFeed = NewsAPI(configFile)
# scheduler = APScheduler()
scheduler = BackgroundScheduler()
def config():
    return threadConfiguration()
Beispiel #5
0
def newsFeed():
    return NewsAPI(threadConfiguration())