def test_dir_list(self): with patch.dict(gitfs.__opts__, {'cachedir': self.master_opts['cachedir'], 'gitfs_remotes': ['file://' + self.tmp_repo_dir], 'sock_dir': self.master_opts['sock_dir'], '__role': self.master_opts['__role']}): ret = gitfs.dir_list(LOAD) self.assertIn('grail', ret)
def test_dir_list(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.dir_list(LOAD) self.assertIn('grail', ret)
def test_dir_list_fallback(self): with patch.dict(gitfs.__opts__, {"gitfs_fallback": "master"}): gitfs.update() ret = gitfs.dir_list({"saltenv": "notexisting"}) self.assertIn("grail", ret) self.assertIn(UNICODE_DIRNAME, ret)
def test_dir_list(self): gitfs.update() ret = gitfs.dir_list(LOAD) self.assertIn("grail", ret) self.assertIn(UNICODE_DIRNAME, ret)
def test_dir_list(self): ret = gitfs.dir_list(LOAD) self.assertIn('grail', ret) self.assertIn(UNICODE_DIRNAME, ret)
def test_dir_list(self): ret = gitfs.dir_list(LOAD) self.assertIn('grail', ret)