def test_commit(self): ''' Test to commit the current directory, files, or directories to the remote Subversion repository ''' mock = MagicMock(return_value={'retcode': 0, 'stdout': True}) with patch.dict(svn.__salt__, {'cmd.run_all': mock}): self.assertTrue(svn.commit('cwd'))
def test_commit(self): """ Test to commit the current directory, files, or directories to the remote Subversion repository """ mock = MagicMock(return_value={"retcode": 0, "stdout": True}) with patch.dict(svn.__salt__, {"cmd.run_all": mock}): self.assertTrue(svn.commit("cwd"))