Beispiel #1
0
 def _create_target(self):
     target_class = type(self._data.data)
     if target_class is TestDataDirectory:
         target = TestDataDirectory(source=self._data.directory)
         target.initfile = self._data.data.initfile
         return target
     return target_class(source=self._data.source)
Beispiel #2
0
 def _create_target(self):
     target_class = type(self._data.data)
     if target_class is TestDataDirectory:
         target = TestDataDirectory(source=self._data.directory)
         target.initfile = self._data.data.initfile
         return target
     return target_class(source=self._data.source)
Beispiel #3
0
 def _create_target(self):
     data = self._data.data
     target_class = type(data)
     if isinstance(data, TestDataDirectory):
         target = TestDataDirectory(source=self._data.directory)
         target.initfile = data.initfile
         return target
     return target_class(source=self._data.source)
Beispiel #4
0
 def _create_target(self):
     data = self._data.data
     target_class = type(data)
     if isinstance(data, TestDataDirectory):
         target = TestDataDirectory(source=self._data.directory)
         target.initfile = data.initfile
         return target
     return target_class(source=self._data.source)
Beispiel #5
0
def NewTestDataDirectory(path):
    dirname = os.path.dirname(path)
    datafile = TestDataDirectory(source=dirname)
    datafile.initfile = path
    _create_missing_directories(dirname)
    return datafile
 def _run(self):
     result = TestDataDirectory(source=os.path.dirname(self._path))
     result.initfile = self._path
     FromFilePopulator(result).populate(self._path)
     return result