Ejemplo n.º 1
0
 def test_update(self):
     '''
     Test to update the current directory, files, or directories from
     the remote Subversion repository
     '''
     mock = MagicMock(return_value={'retcode': 0, 'stdout': True})
     with patch.dict(svn.__salt__, {'cmd.run_all': mock}):
         self.assertTrue(svn.update('cwd'))
Ejemplo n.º 2
0
 def test_update(self):
     '''
     Test to update the current directory, files, or directories from
     the remote Subversion repository
     '''
     mock = MagicMock(return_value={'retcode': 0, 'stdout': True})
     with patch.dict(svn.__salt__, {'cmd.run_all': mock}):
         self.assertTrue(svn.update('cwd'))
Ejemplo n.º 3
0
 def test_update(self):
     """
     Test to update the current directory, files, or directories from
     the remote Subversion repository
     """
     mock = MagicMock(return_value={"retcode": 0, "stdout": True})
     with patch.dict(svn.__salt__, {"cmd.run_all": mock}):
         self.assertTrue(svn.update("cwd"))