Ejemplo n.º 1
0
 def __str__(self):
     return normalize_path(self.path, self.nest.work_dir)
Ejemplo n.º 2
0
 def __str__(self):
     return normalize_path(self.path, self.nest.work_dir)
Ejemplo n.º 3
0
 def test_01_weaver_nest(self):
     self.assertEqual(normalize_path("weaver/nest.py", self.DIR_NAME), "../nest.py")
Ejemplo n.º 4
0
 def test_02_weaver_test_util(self):
     self.assertEqual(normalize_path("weaver/test/util.py", self.DIR_NAME), "util.py")
Ejemplo n.º 5
0
 def _generate(self):
     return (MakeFile(normalize_path(f.strip(), os.curdir), self.nest)
             for f in glob.glob(self.expr))
Ejemplo n.º 6
0
 def test_00_readme(self):
     self.assertEqual(normalize_path("README.rst", self.DIR_NAME), "../../README.rst")
Ejemplo n.º 7
0
 def test_02_weaver_test_util(self):
     self.assertEqual(
         normalize_path('weaver/test/util.py', self.DIR_NAME),
         'util.py')
Ejemplo n.º 8
0
 def __iter__(self):
     # Skip checking and generating cache file, since we are given file
     debug(D_DATASET, 'Loading Dataset: {0}'.format(self.cache_path))
     return (MakeFile(normalize_path(f.strip(), os.curdir), self.nest)
             for f in open(self.cache_path, 'r'))
Ejemplo n.º 9
0
 def test_00_readme(self):
     self.assertEqual(
         normalize_path('README.rst', self.DIR_NAME),
         '../../README.rst')
Ejemplo n.º 10
0
 def test_01_weaver_nest(self):
     self.assertEqual(
         normalize_path('weaver/nest.py', self.DIR_NAME),
         '../nest.py')
Ejemplo n.º 11
0
 def test_02_weaver_test_util(self):
     self.assertEqual(normalize_path('weaver/test/util.py', self.DIR_NAME),
                      'util.py')
Ejemplo n.º 12
0
 def test_01_weaver_nest(self):
     self.assertEqual(normalize_path('weaver/nest.py', self.DIR_NAME),
                      '../nest.py')
Ejemplo n.º 13
0
 def test_00_readme(self):
     self.assertEqual(normalize_path('README.rst', self.DIR_NAME),
                      '../../README.rst')
Ejemplo n.º 14
0
 def _generate(self):
     return (MakeFile(normalize_path(f.strip(), os.curdir), self.nest)
             for f in glob.glob(self.expr))
Ejemplo n.º 15
0
 def __iter__(self):
     # Skip checking and generating cache file, since we are given file
     debug(D_DATASET, 'Loading Dataset: {0}'.format(self.cache_path))
     return (MakeFile(normalize_path(f.strip(), os.curdir), self.nest)
             for f in open(self.cache_path, 'r'))