def setUp(self): """ Set up the environnment, ran before every tests. """ super(Weektests, self).setUp() # Fills some data in the database in memory modeltest = Meetingtests(method_name='test_init_meeting') modeltest.session = self.session modeltest.test_init_meeting()
def __setup_db(self): """ Add a calendar and some meetings so that we can play with something. """ from test_meeting import Meetingtests meeting = Meetingtests('test_init_meeting') meeting.session = self.session meeting.test_init_meeting()
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()