def setUp(self):
        create_db_tables(db_filename)
        self.populate_db_tables()

        settings = {'sqlalchemy.url': 'sqlite:///' + db_filename}
        app = main(None, **settings)
        self.testapp = TestApp(app)
    def setUp(self):
        create_db_tables(db_filename)
        self.populate_db_tables()

        settings = {'sqlalchemy.url': 'sqlite:///' + db_filename}
        app = main(None, **settings)
        self.testapp = TestApp(app)
Ejemplo n.º 3
0
    def setUp(self):
        create_db_tables(db_filename)
        self.populate_db_tables()

        settings = {'sqlalchemy.url': 'sqlite:///' + db_filename}
        # Create the SQLAlchemy DB Engine
        engine = engine_from_config(settings, 'sqlalchemy.')
        Session = sessionmaker(bind=engine)
        self.session = Session()
        self.venue_dao = VenueDao()
Ejemplo n.º 4
0
    def setUp(self):
        create_db_tables(db_filename)
        self.populate_db_tables()

        settings = {'sqlalchemy.url': 'sqlite:///' + db_filename}
        # Create the SQLAlchemy DB Engine
        engine = engine_from_config(settings, 'sqlalchemy.')
        Session = sessionmaker(bind=engine)
        self.session = Session()
        self.person_dao = PersonDao()
Ejemplo n.º 5
0
    def setUp(self):
        create_db_tables(db_filename)
        self.populate_db_tables()

        settings = {"sqlalchemy.url": "sqlite:///" + db_filename}
        # Create the SQLAlchemy DB Engine
        engine = engine_from_config(settings, "sqlalchemy.")
        Session = sessionmaker(bind=engine)
        self.session = Session()
        self.person_dao = PersonDao()
Ejemplo n.º 6
0
    def setUp(self):
        """Called before each test case"""
        create_db_tables(db_filename)
        self.populate_db_tables()

        settings = {'sqlalchemy.url': 'sqlite:///' + db_filename}
        # Create the SQLAlchemy DB Engine
        engine = engine_from_config(settings, 'sqlalchemy.')
        Session = sessionmaker(bind=engine)
        self.session = Session()

        self.act_dao = ActDao()
Ejemplo n.º 7
0
    def setUp(self):
        """Called before each test case"""
        create_db_tables(db_filename)
        self.populate_db_tables()

        settings = {'sqlalchemy.url': 'sqlite:///' + db_filename}
        # Create the SQLAlchemy DB Engine
        engine = engine_from_config(settings, 'sqlalchemy.')
        Session = sessionmaker(bind=engine)
        self.session = Session()

        self.act_dao = ActDao()