コード例 #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'))
コード例 #2
0
ファイル: test_suite.py プロジェクト: ovoxo/pythonbrew
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
コード例 #3
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'))
コード例 #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
コード例 #5
0
def test_install():
    from pythonbrew.commands.install import InstallCommand
    c = InstallCommand()
    c.run_command(InstallOptions(), [TESTPY_VERSION])
コード例 #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'])
コード例 #7
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'])
コード例 #8
0
ファイル: test_04_install.py プロジェクト: npinto/pythonbrew
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