Beispiel #1
0
 def setUpClass(cls):
     """ must add default route 'home' and include apex
         we also must create a default user/pass/group to test
     """
     cls.engine = engine_from_config(settings, prefix='sqlalchemy.')
     DBSession.configure(bind=cls.engine)
     Base.metadata.create_all(cls.engine)
Beispiel #2
0
 def setUpClass(cls):
     """ must add default route 'home' and include apex
         we also must create a default user/pass/group to test
     """
     cls.engine = engine_from_config(settings, prefix='sqlalchemy.')
     DBSession.configure(bind=cls.engine)
     Base.metadata.create_all(cls.engine)
Beispiel #3
0
    def setUp(self):
        self.config = testing.setUp()
        self.config.add_route('home', '/')
        self.config.add_settings(settings)
        self.config.include('apex')

        connection = self.engine.connect()

        # begin a non-ORM transaction
        self.trans = connection.begin()

        # bind an individual Session to the connection
        DBSession.configure(bind=connection)
        self.session = self.Session(bind=connection)
Beispiel #4
0
    def setUp(self):
        self.config = testing.setUp()
        self.config.add_route('home', '/')
        self.config.add_settings(settings)
        self.config.include('apex')

        connection = self.engine.connect()

        # begin a non-ORM transaction
        self.trans = connection.begin()

        # bind an individual Session to the connection
        DBSession.configure(bind=connection)
        self.session = self.Session(bind=connection)