def setUp(self): self.db_test_base = db_test_base.DBTestBase() self.db_test_base.setUp() self.daemon = temporary_daemon.TemporaryDaemon() self.db = self.daemon.db_proxy self.db.add_dir(self.db_test_base.test_data_dir) self.options = FakeOptions(self.db_test_base.test_data_dir)
def setUp(self): self.db_test_base = db_test_base.DBTestBase() self.db_test_base.setUp() self.daemon = temporary_daemon.TemporaryDaemon() self.client_settings_file = tempfile.NamedTemporaryFile() self.client_settings = settings.Settings(self.client_settings_file.name) self.db = self.daemon.db_proxy self.db.add_dir(self.db_test_base.test_data_dir) self.options = FakeOptions()
def setUp(self): unittest.TestCase.setUp(self) QuickopenTestBase.setUp(self) self.daemon = temporary_daemon.TemporaryDaemon()
def setUp(self): self.daemon = temporary_daemon.TemporaryDaemon() self.conn = self.daemon.conn
def get_selected_indices(self): all = [] cur = -1 while True: cur = self._results_list.GetNextSelected(cur) if cur == -1: break all.append(cur) return all def get_selected_items(self): return map(lambda i: self._cur_results[i], self.get_selected_indices()) if __name__ == "__main__": # KNOWN BROKEN by work to integrate with message_loop import db_test_base import settings import tempfile import temporary_daemon db_test_base = db_test_base.DBTestBase() db_test_base.setUp() daemon = temporary_daemon.TemporaryDaemon() client_settings_file = tempfile.NamedTemporaryFile() client_settings = settings.Settings(client_settings_file.name) db = daemon.db_proxy db.add_dir(db_test_base.test_data_dir) run(client_settings, db) db_test_base.tearDown() client_settings_file.close()
def setUp(self): db_test_base.DBTestBase.setUp(self) self.daemon = temporary_daemon.TemporaryDaemon() self.db = self.daemon.db_proxy