def test_file_importdata(self): self.path = op.dirname(op.abspath(__file__)) app = KrySA() p = partial(self.run_test, app) Clock.schedule_once(p, .000001) app.run()
def test_tasks_basic_freq(self): self.path = op.dirname(op.abspath(__file__)) if not op.exists(op.join(self.path, 'test_folder')): os.mkdir(op.join(self.path, 'test_folder')) else: rmtree(op.join(self.path, 'test_folder')) os.mkdir(op.join(self.path, 'test_folder')) self.folder = op.join(self.path, 'test_folder') app = KrySA() p = partial(self.run_test, app) Clock.schedule_once(p, .000001) app.run() rmtree(self.folder)
def test_tasks_basic_min(self): self.path = op.dirname(op.abspath(__file__)) if not op.exists(op.join(self.path, 'test_folder')): os.mkdir(op.join(self.path, 'test_folder')) else: rmtree(op.join(self.path, 'test_folder')) os.mkdir(op.join(self.path, 'test_folder')) self.folder = op.join(self.path, 'test_folder') app = KrySA() p = partial(self.run_test, app) Clock.schedule_once(p, .000001) app.run() rmtree(self.folder)
def test_file_recentprojects(self): self.path = op.dirname(op.abspath(__file__)) if not op.exists(op.join(self.path, 'test_folder')): os.mkdir(op.join(self.path, 'test_folder')) else: rmtree(op.join(self.path, 'test_folder')) os.mkdir(op.join(self.path, 'test_folder')) self.folder = op.join(self.path, 'test_folder') app = KrySA() rmtree(app.user_data_dir) p = partial(self.run_test, app) Clock.schedule_once(p, .000001) app.run() rmtree(app.user_data_dir) rmtree(self.folder)