def test_install(self): mock = MagicMock(return_value={'retcode': 0}) with patch.dict(rvm.__salt__, {'cmd.run_all': mock}): rvm.install() mock.assert_called_once_with( 'curl -Ls https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer | bash -s stable', runas=None, python_shell=True)
def test_install(self): mock = MagicMock(return_value={"retcode": 0}) with patch.dict(rvm.__salt__, {"cmd.run_all": mock}): rvm.install() mock.assert_called_once_with( "curl -Ls https://raw.githubusercontent.com/wayneeseguin/rvm/master/binscripts/rvm-installer | bash -s stable", runas=None, python_shell=True, )
def test_install(self): mock = MagicMock(return_value={"retcode": 0}) with patch.dict(rvm.__salt__, {"cmd.run_all": mock}): rvm.install() curl_cmd = ( "curl -Ls" " https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer" " | bash -s stable" ) mock.assert_called_once_with(curl_cmd, runas=None, python_shell=True)
def test_install(self): mock = MagicMock(return_value={'retcode': 0}) with patch.dict(rvm.__salt__, {'cmd.run_all': mock}): rvm.install()
def test_install(self): mock = MagicMock(return_value=0) with patch.dict(rvm.__salt__, {'cmd.retcode': mock}): rvm.install()