コード例 #1
0
ファイル: gitfs_test.py プロジェクト: bencord0/salt
 def test_file_list_emptydirs(self):
     with patch.dict(
             gitfs.__opts__, {
                 'cachedir': self.master_opts['cachedir'],
                 'gitfs_remotes': ['file://' + self.tmp_repo_git],
                 'sock_dir': self.master_opts['sock_dir']
             }):
         ret = gitfs.file_list_emptydirs(LOAD)
         self.assertIn('empty_dir', ret)
コード例 #2
0
ファイル: gitfs_test.py プロジェクト: AccelerationNet/salt
 def test_file_list_emptydirs(self):
     with patch.dict(gitfs.__opts__, {'cachedir': self.master_opts['cachedir'],
                                      'gitfs_remotes': ['file://' + self.tmp_repo_git],
                                      'sock_dir': self.master_opts['sock_dir']}):
         ret = gitfs.file_list_emptydirs(load)
         self.assertIn('empty_dir', ret)