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 instance_path = os.path.join(os.path.expanduser('~'), "brecal", "src", "server", "instance", "instance") application = create_app(test_config=None, instance_path=instance_path) return if __name__=="__main__": test_create_app()