Example #1
0
 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()
Example #2
0
 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()
Example #3
0
 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)
Example #4
0
 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)