Ejemplo n.º 1
0
 def setUp(self):
     self.parser = cli.setup_parser()
     self.profile_path = tempfile.mkdtemp()
     profile = Profile(self.profile_path, 'testing')
     self.db = profile.get_database()
     for talk in self.presentations:
         self.db.insert_presentation(talk)
Ejemplo n.º 2
0
    def setUp(self):
        '''
        Stardard init method: runs before each test_* method

        Initializes a PluginManager

        '''
        self.profile_path = tempfile.mkdtemp()
        profile = Profile(self.profile_path, 'testing')

        dirname = os.path.dirname(__file__)
        self._csvfile = os.path.join(dirname, 'sample_talks.csv')

        db_file = os.path.join(self.profile_path, 'presentations.db')
        self.db = QtDBConnector(db_file, PluginManager(profile))
Ejemplo n.º 3
0
 def setUp(self):
     self.profile_path = tempfile.mkdtemp()
     self.profile = Profile(self.profile_path, 'testing')