Example #1
0
 def setUp(self):
     self.app = create_app()
     self.db = db
     self.app.config['TESTING'] = True
     self.app_ctx = self.app.app_context()
     self.app_ctx.push()
     db.session.close()
     db.drop_all()
     db.create_all()
     self.factory = Factory()
     self.client = self.app.test_client()
Example #2
0
 def setUp(self):
     self.app = create_app()
     self.db = db
     self.app.config['TESTING'] = True
     self.app_ctx = self.app.app_context()
     self.app_ctx.push()
     db.session.close()
     db.drop_all()
     db.create_all()
     self.factory = Factory()
     self.client = self.app.test_client()
Example #3
0
 def setUp(self):
     self.app = create_app()
     self.db = db
     self.app.config['TESTING'] = True
     self.app.config['SERVER_NAME'] = 'localhost'
     limiter.enabled = False
     self.app_ctx = self.app.app_context()
     self.app_ctx.push()
     db.session.close()
     db.drop_all()
     db.create_all()
     self.factory = Factory()
     self.client = self.app.test_client()
Example #4
0
 def setUp(self):
     self.app = create_app()
     self.db = db
     self.app.config['TESTING'] = True
     self.app.config['SERVER_NAME'] = 'localhost'
     limiter.enabled = False
     self.app_ctx = self.app.app_context()
     self.app_ctx.push()
     db.session.close()
     db.drop_all()
     db.create_all()
     self.factory = Factory()
     self.client = self.app.test_client()
def drop_tables():
    """Drop the database tables."""
    from redash.models import db

    _wait_for_db_connection(db)
    db.drop_all()
Example #6
0
def drop_tables():
    """Drop the database tables."""
    from redash.models import db

    _wait_for_db_connection(db)
    db.drop_all()
Example #7
0
def drop_tables():
    """Drop the database tables."""
    from redash.models import db

    db.drop_all()
Example #8
0
def drop_tables():
    """Drop the database tables."""
    from redash.models import db

    db.drop_all()