git_brcal/src/server/tests/test_create_app.py

22 lines
529 B
Python

import pytest
def test_create_app():
"""
"""
import os
import sys
from BreCal import get_project_root
project_root = get_project_root("brecal")
lib_location = os.path.join(project_root, "src", "server")
sys.path.append(lib_location)
from BreCal import create_app
os.chdir(os.path.join(lib_location,"BreCal")) # set the current directory to ~/brecal/src/server/BreCal, so the config is found
application = create_app()
return
if __name__=="__main__":
test_create_app()