コード例 #1
0
ファイル: test_week.py プロジェクト: anjali-92/fedocal
 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
ファイル: test_flask.py プロジェクト: hguemar/fedocal
 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
ファイル: test_week.py プロジェクト: yumsuresht/fedocal
 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
ファイル: test_week.py プロジェクト: robyduck/fedocal
 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()