def app(): from backend.initial_setup import CalculatedServer instance = CalculatedServer() app = instance.app app.testing = True return app.test_client()
def start_app(): from backend.initial_setup import CalculatedServer global app server = CalculatedServer() app = server.app return server
def test_get_version(self): # git needs to be in the environment for this assert re.compile(r"[0-9a-fA-F]{7}").match( CalculatedServer.get_version() )