コード例 #1
0
def test_install_pkg():
    with Workspace() as workspace:
        manage.create_virtualenv(os.path.join(workspace.workspace))
        manage.install_pkg(workspace.workspace, 'simplejson')
        assert 'simplejson' in manage.run(
            [(os.path.join(workspace.workspace, 'bin', 'pip')), 'freeze'],
             capture_stdout=True)
コード例 #2
0
def test_install_pkg():
    with Workspace() as workspace:
        manage.create_virtualenv(os.path.join(workspace.workspace))
        manage.install_pkg(workspace.workspace, 'simplejson')
        assert 'simplejson' in manage.run(
            [(os.path.join(workspace.workspace, 'bin', 'pip')), 'freeze'],
            capture_stdout=True)
コード例 #3
0
def test_create_virtualenv():
    with Workspace() as workspace:
        manage.create_virtualenv(os.path.join(workspace.workspace, 'foo'))
        assert os.path.isfile(os.path.join(workspace.workspace, 'foo',
                                            'bin', 'python'))
コード例 #4
0
def test_create_virtualenv():
    with Workspace() as workspace:
        manage.create_virtualenv(os.path.join(workspace.workspace, 'foo'))
        assert os.path.isfile(
            os.path.join(workspace.workspace, 'foo', 'bin', 'python'))