Beispiel #1
0
 def test_rely_on_best_version(self, asdf, mocker):
     best_version = mocker.patch.object(plugin,
                                        'best_version',
                                        return_value='result')
     assert plugin.asdf_install('3.6') == 'result'
     best_version.assert_called_once_with('3.6', mocker.ANY)
Beispiel #2
0
 def test_install_pypy3(self, asdf):
     assert plugin.asdf_install('pypy3.5') == 'pypy3.5-6.0.0'
Beispiel #3
0
 def test_install_python(self, asdf):
     assert plugin.asdf_install('3.6') == '3.6.0'
Beispiel #4
0
 def test_install_pypy(self, asdf):
     assert plugin.asdf_install('pypy2.7') == 'pypy2.7-6.0.0'
Beispiel #5
0
 def test_install_error(self, asdf):
     with pytest.raises(plugin.AsdfError):
         plugin.asdf_install('3.6')