def setUp(self): """ Set up the environnment, ran before every tests. """ self.session = model.create_tables('sqlite:///:memory:') # Fills some data in the database in memory modeltest = Meetingtests(method_name='test_init_meeting') modeltest.session = self.session modeltest.test_init_meeting()
#!/usr/bin/python ## These two lines are needed to run on EL6 __requires__ = ['SQLAlchemy >= 0.7', 'jinja2 >= 2.4'] import pkg_resources from fedocal import APP from fedocal.fedocallib import model model.create_tables(APP.config['DB_URL'], APP.config['PATH_ALEMBIC_INI'], True)
def setUp(self): """ Set up the environnment, ran before every tests. """ self.session = model.create_tables(DB_PATH)
#!/usr/bin/python from fedocal import APP from fedocal.fedocallib import model model.create_tables(APP.config['DB_URL'], APP.config['PATH_ALEMBIC_INI'], True)