Beispiel #1
0
    def setUp(self):
        self.engine = sqlalchemy_engine()
        Base.metadata.create_all(bind=self.engine)

        self.app = create_app()
        self.client = self.app.test_client()
Beispiel #2
0
#!/usr/bin/env python

from follows.db import Base, sqlalchemy_engine
from follows.feed.models import *

if __name__ == "__main__":
    engine = sqlalchemy_engine()
    Base.metadata.drop_all(bind=engine)
    Base.metadata.create_all(bind=engine)