Beispiel #1
0
 def __str__(self):
     return normalize_path(self.path, self.nest.work_dir)
Beispiel #2
0
 def __str__(self):
     return normalize_path(self.path, self.nest.work_dir)
Beispiel #3
0
 def test_01_weaver_nest(self):
     self.assertEqual(normalize_path("weaver/nest.py", self.DIR_NAME), "../nest.py")
Beispiel #4
0
 def test_02_weaver_test_util(self):
     self.assertEqual(normalize_path("weaver/test/util.py", self.DIR_NAME), "util.py")
Beispiel #5
0
 def _generate(self):
     return (MakeFile(normalize_path(f.strip(), os.curdir), self.nest)
             for f in glob.glob(self.expr))
Beispiel #6
0
 def test_00_readme(self):
     self.assertEqual(normalize_path("README.rst", self.DIR_NAME), "../../README.rst")
Beispiel #7
0
 def test_02_weaver_test_util(self):
     self.assertEqual(
         normalize_path('weaver/test/util.py', self.DIR_NAME),
         'util.py')
Beispiel #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'))
Beispiel #9
0
 def test_00_readme(self):
     self.assertEqual(
         normalize_path('README.rst', self.DIR_NAME),
         '../../README.rst')
Beispiel #10
0
 def test_01_weaver_nest(self):
     self.assertEqual(
         normalize_path('weaver/nest.py', self.DIR_NAME),
         '../nest.py')
Beispiel #11
0
 def test_02_weaver_test_util(self):
     self.assertEqual(normalize_path('weaver/test/util.py', self.DIR_NAME),
                      'util.py')
Beispiel #12
0
 def test_01_weaver_nest(self):
     self.assertEqual(normalize_path('weaver/nest.py', self.DIR_NAME),
                      '../nest.py')
Beispiel #13
0
 def test_00_readme(self):
     self.assertEqual(normalize_path('README.rst', self.DIR_NAME),
                      '../../README.rst')
Beispiel #14
0
 def _generate(self):
     return (MakeFile(normalize_path(f.strip(), os.curdir), self.nest)
             for f in glob.glob(self.expr))
Beispiel #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'))