def test_gets_version(self, fake_home, virtualenvs_folder):
        running_python_version = ".".join(python_version().split(".")[:2])
        v = Virtualenv("www.adomain.com", running_python_version)
        v.create(nuke=False)
        v.pip_install("aafigure==0.6")

        assert v.get_version("aafigure") == "0.6"
Exemplo n.º 2
0
    def test_actually_installing_a_real_package(self, fake_home,
                                                virtualenvs_folder):
        v = Virtualenv("www.adomain.com", "2.7")
        v.create(nuke=False)
        v.pip_install("aafigure")

        subprocess.check_call(
            [str(v.path / "bin/python"), "-c"
             "import aafigure"])
Exemplo n.º 3
0
    def test_actually_installing_a_real_package(self, fake_home,
                                                virtualenvs_folder):
        v = Virtualenv('www.adomain.com', '2.7')
        v.create(nuke=False)
        v.pip_install('aafigure')

        subprocess.check_call(
            [str(v.path / 'bin/python'), '-c'
             'import aafigure'])
    def test_actually_installing_a_real_package(self, fake_home,
                                                virtualenvs_folder):
        running_python_version = ".".join(python_version().split(".")[:2])
        v = Virtualenv("www.adomain.com", running_python_version)
        v.create(nuke=False)
        v.pip_install("aafigure")

        subprocess.check_call(
            [str(v.path / "bin/python"), "-c"
             "import aafigure"])
Exemplo n.º 5
0
 def test_install_pip_installs_each_package(self, mock_subprocess,
                                            virtualenvs_folder):
     v = Virtualenv("domain.com", "2.7")
     v.create(nuke=False)
     v.pip_install("package1 package2==1.1.2")
     args, kwargs = mock_subprocess.check_call.call_args_list[-1]
     command_list = args[0]
     pip_path = str(v.path / "bin/pip")
     assert command_list == [
         pip_path, "install", "package1", "package2==1.1.2"
     ]
Exemplo n.º 6
0
 def test_install_pip_installs_each_package(self, mock_subprocess,
                                            virtualenvs_folder):
     v = Virtualenv('domain.com', '2.7')
     v.create(nuke=False)
     v.pip_install('package1 package2==1.1.2')
     args, kwargs = mock_subprocess.check_call.call_args_list[-1]
     command_list = args[0]
     pip_path = str(v.path / 'bin/pip')
     assert command_list == [
         pip_path, 'install', 'package1', 'package2==1.1.2'
     ]