def test_local_taskfile(self): local_taskfile = self.temptaskdir / 'taskfile.py' sample_taskfile.copy(local_taskfile) assert loader.which(self.temptaskdir).basename() == 'taskfile.py' task = loader.use(self.temptaskdir) self.assertEqual(task.two()[0], 2.0) local_taskfile.unlink()
def test_loader(self): assert loader.which(self.temptaskdir).basename() == 'taskfile_sub.py' task = loader.use(self.temptaskdir) self.assertEqual(task.two()[0], 2.0)