def setUpClass(cls): cls.app = create_app('testing', "") cls.app_context = cls.app.app_context() cls.app_context.push() db.create_all() # Create an admin for tests. create_db_admin(cls.app, "testadmin", "*****@*****.**", "testpw")
def setUpClass(cls): cls.app = create_app('altUI', "") cls.app_context = cls.app.app_context() cls.app_context.push() db.create_all() # save the current timestamp to the database to avoid hanging cached # data save_config_timestamp() db.session.commit()
def setUpClass(cls): cls.app = create_app('testing', "") cls.app_context = cls.app.app_context() cls.app_context.push() db.create_all() # save the current timestamp to the database to avoid hanging cached # data save_config_timestamp() db.session.commit() # Create an admin for tests. create_db_admin(cls.app, "testadmin", "*****@*****.**", "testpw")
def setUpClass(cls): # Modified setup method to use SharedEngineRegistry cls.app = create_app('testing', "") cls.app.config['PI_ENGINE_REGISTRY_CLASS'] = 'shared' cls.app_context = cls.app.app_context() cls.app_context.push() db.create_all() # save the current timestamp to the database to avoid hanging cached # data save_config_timestamp() db.session.commit() # Create an admin for tests. create_db_admin(cls.app, "testadmin", "*****@*****.**", "testpw")