Пример #1
0
 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()
Пример #2
0
 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()
Пример #3
0
 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()
Пример #4
0
 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()
Пример #5
0
 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()