def setUp(self):
   self._base_path = Server2Path('test_data', 'test_json')
 def setUp(self):
     ConfigureFakeFetchers()
     self._base_path = Server2Path('test_data', 'github_file_system')
     self._file_system = GithubFileSystem.CreateChromeAppsSamples(
         ObjectStoreCreator.ForTest())
 def setUp(self):
   self._base_path = Server2Path('test_data', 'samples_data_source')
Beispiel #4
0
 def setUp(self):
   self._branch_util = BranchUtility(
       os.path.join('branch_utility', 'first.json'),
       os.path.join('branch_utility', 'second.json'),
       FakeUrlFetcher(Server2Path('test_data')),
       ObjectStoreCreator.ForTest())
Beispiel #5
0
 def _ReadLocalFile(self, filename):
   with open(Server2Path('test_data',
                         'rietveld_patcher',
                         'expected',
                         filename), 'r') as f:
     return f.read()
Beispiel #6
0
def _ReadLocalFile(filename):
    base_path = Server2Path('test_data', 'samples_data_source')
    with open(os.path.join(base_path, filename), 'r') as f:
        return f.read()