Ejemplo n.º 1
0
 def test_install_3_4_3(self):
     from pythonbrew.commands.install import InstallCommand
     from pythonbrew.util import is_installed
     o = self.Options({'force': True, 'test': False, 'verbose': False, 'configure': "",
                       'no_setuptools': False, 'alias': None, 'jobs': 2,
                       'framework': False, 'universal': False, 'static': False})
     c = InstallCommand()
     c.run_command(o, ['3.4.3'])
     ok_(is_installed('3.4.3'))
Ejemplo n.º 2
0
def test_03_install():
    from pythonbrew.commands.install import InstallCommand
    py_version = TESTPY_VERSION.pop(0)
    o = Options({'force':True, 'test':True, 'verbose':False, 'configure':"",
                 'no_setuptools': False, 'alias':None, 'jobs':2, 
                 'framework':False, 'universal':False, 'static':False})
    c = InstallCommand()
    c.run_command(o, [py_version]) # pybrew install -f -j2 2.4.6
    c.run_command(o, TESTPY_VERSION) # pybrew install -f -j2 2.5.6 2.6.6 3.2
 def test_install_3_4_3(self):
     from pythonbrew.commands.install import InstallCommand
     from pythonbrew.util import is_installed
     o = self.Options({
         'force': True,
         'test': False,
         'verbose': False,
         'configure': "",
         'no_setuptools': False,
         'alias': None,
         'jobs': 2,
         'framework': False,
         'universal': False,
         'static': False
     })
     c = InstallCommand()
     c.run_command(o, ['3.4.3'])
     ok_(is_installed('3.4.3'))
Ejemplo n.º 4
0
def test_03_install():
    from pythonbrew.commands.install import InstallCommand
    py_version = TESTPY_VERSION.pop(0)
    o = Options({'force':True, 'test':False, 'verbose':False, 'configure':"",
                 'no_setuptools': False, 'alias':None, 'jobs':2, 
                 'framework':False, 'universal':False, 'static':False})
    c = InstallCommand()
    c.run_command(o, [py_version]) # pybrew install -f -j2 2.5.6
    c.run_command(o, TESTPY_VERSION) # pybrew install -f -j2 2.6.6 3.2
Ejemplo n.º 5
0
def test_install():
    from pythonbrew.commands.install import InstallCommand
    c = InstallCommand()
    c.run_command(InstallOptions(), [TESTPY_VERSION])
Ejemplo n.º 6
0
 def test_venv(self):
     from pythonbrew.commands.venv import VenvCommand
     from pythonbrew.commands.install import InstallCommand
     o = self.Options({'force': True, 'test': False, 'verbose': False, 'configure': "",
                       'no_setuptools': False, 'alias': None, 'jobs': 2,
                       'framework': False, 'universal': False, 'static': False})
     c = InstallCommand()
     c.run_command(o, ['3.4.3'])
     c = VenvCommand()
     o = self.Options({'python': '3.4.3', 'no_site_packages': False, 'system_site_packages': False})
     c.run_command(o, ['init'])
     c.run_command(o, ['create', 'aaa'])
     c.run_command(o, ['list'])
     c.run_command(o, ['use', 'aaa'])
     c.run_command(o, ['delete', 'aaa'])
 def test_venv(self):
     from pythonbrew.commands.venv import VenvCommand
     from pythonbrew.commands.install import InstallCommand
     o = self.Options({
         'force': True,
         'test': False,
         'verbose': False,
         'configure': "",
         'no_setuptools': False,
         'alias': None,
         'jobs': 2,
         'framework': False,
         'universal': False,
         'static': False
     })
     c = InstallCommand()
     c.run_command(o, ['3.4.3'])
     c = VenvCommand()
     o = self.Options({
         'python': '3.4.3',
         'no_site_packages': False,
         'system_site_packages': False
     })
     c.run_command(o, ['init'])
     c.run_command(o, ['create', 'aaa'])
     c.run_command(o, ['list'])
     c.run_command(o, ['use', 'aaa'])
     c.run_command(o, ['delete', 'aaa'])
Ejemplo n.º 8
0
def test_install():
    from pythonbrew.commands.install import InstallCommand
    py_version = TESTPY_VERSION.pop(0)
    c = InstallCommand()
    c.run_command(InstallOptions(), [py_version]) # pybrew install -f -j2 2.4.6
    c.run_command(InstallOptions(), TESTPY_VERSION) # pybrew install -f -j2 2.5.6 2.6.6 3.2