Пример #1
0
 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")
Пример #2
0
 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")
Пример #3
0
 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()
Пример #4
0
 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")
Пример #5
0
 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")
Пример #6
0
 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")