Exemple #1
0
 def setUp(self):
     ConfigureFakeFetchers()
     self._base_path = os.path.join(sys.path[0], 'test_data',
                                    'github_file_system')
     self._file_system = GithubFileSystem.Create(
         ObjectStoreCreator.ForTest())
 def CreateAppSamplesFileSystem(self, object_store_creator):
     # TODO(kalman): CachingFileSystem wrapper for GithubFileSystem, but it's
     # not supported yet (see comment there).
     return (EmptyDirFileSystem() if IsDevServer() else
             GithubFileSystem.Create(object_store_creator))
Exemple #3
0
 def CreateAppSamplesFileSystem(self, object_store_creator):
     # TODO(kalman): OfflineServerInstance wrapper for GithubFileSystem, but
     # the cron job doesn't crawl the samples yet.
     return (EmptyDirFileSystem() if IsDevServer() else
             GithubFileSystem.Create(object_store_creator))