22 lines
550 B
Python
22 lines
550 B
Python
import pytest
|
|
|
|
def test_create_app():
|
|
"""
|
|
|
|
"""
|
|
import os
|
|
import sys
|
|
from BreCal import get_project_root
|
|
|
|
project_root = os.path.join(os.path.expanduser("~"), "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()
|