summaryrefslogtreecommitdiff
path: root/tests/test_vcs_backends.py
diff options
context:
space:
mode:
authorJannis Leidel <jannis@leidel.info>2012-02-16 21:09:00 +0100
committerJannis Leidel <jannis@leidel.info>2012-02-16 21:09:00 +0100
commitee554dd82b8bc6ed9a3cf989b353126580fcc082 (patch)
treeb0604f39ed465673316fe94ffa29046ed868aafc /tests/test_vcs_backends.py
parent47f1b2c2b2523469e6107cb2ef325eb61fa8fcf1 (diff)
parent40ac381fad2cc31f75014f02d3e8bf755d933abb (diff)
downloadpip-1.1.tar.gz
Merge branch 'release/1.1'1.1
Diffstat (limited to 'tests/test_vcs_backends.py')
-rw-r--r--tests/test_vcs_backends.py34
1 files changed, 19 insertions, 15 deletions
diff --git a/tests/test_vcs_backends.py b/tests/test_vcs_backends.py
index fcdd00dac..9561254fa 100644
--- a/tests/test_vcs_backends.py
+++ b/tests/test_vcs_backends.py
@@ -2,16 +2,17 @@ from tests.test_pip import (reset_env, run_pip,
_create_test_package, _change_test_package_version)
from tests.local_repos import local_checkout
+
def test_install_editable_from_git_with_https():
"""
Test cloning from Git with https.
"""
reset_env()
result = run_pip('install', '-e',
- '%s#egg=django-feedutil' %
- local_checkout('git+https://github.com/jezdez/django-feedutil.git'),
+ '%s#egg=pip-test-package' %
+ local_checkout('git+https://github.com/pypa/pip-test-package.git'),
expect_error=True)
- result.assert_installed('django-feedutil', with_files=['.git'])
+ result.assert_installed('pip-test-package', with_files=['.git'])
def test_git_with_sha1_revisions():
@@ -58,15 +59,15 @@ def test_git_with_tag_name_and_update():
Test cloning a git repository and updating to a different version.
"""
reset_env()
- result = run_pip('install', '-e', '%s#egg=django-staticfiles' %
- local_checkout('git+http://github.com/jezdez/django-staticfiles.git'),
+ result = run_pip('install', '-e', '%s#egg=pip-test-package' %
+ local_checkout('git+http://github.com/pypa/pip-test-package.git'),
expect_error=True)
- result.assert_installed('django-staticfiles', with_files=['.git'])
+ result.assert_installed('pip-test-package', with_files=['.git'])
result = run_pip('install', '--global-option=--version', '-e',
- '%s@0.3.1#egg=django-staticfiles' %
- local_checkout('git+http://github.com/jezdez/django-staticfiles.git'),
+ '%s@0.1.1#egg=pip-test-package' %
+ local_checkout('git+http://github.com/pypa/pip-test-package.git'),
expect_error=True)
- assert '0.3.1\n' in result.stdout
+ assert '0.1.1\n' in result.stdout
def test_git_branch_should_not_be_changed():
@@ -75,12 +76,13 @@ def test_git_branch_should_not_be_changed():
related to issue #32 and #161
"""
env = reset_env()
- run_pip('install', '-e', '%s#egg=django-staticfiles' %
- local_checkout('git+http://github.com/jezdez/django-staticfiles.git'),
+ run_pip('install', '-e', '%s#egg=pip-test-package' %
+ local_checkout('git+http://github.com/pypa/pip-test-package.git'),
expect_error=True)
- source_dir = env.venv_path/'src'/'django-staticfiles'
+ source_dir = env.venv_path/'src'/'pip-test-package'
result = env.run('git', 'branch', cwd=source_dir)
- assert '* master' in result.stdout
+ assert '* master' in result.stdout, result.stdout
+
def test_git_with_non_editable_unpacking():
"""
@@ -88,9 +90,10 @@ def test_git_with_non_editable_unpacking():
"""
reset_env()
result = run_pip('install', '--global-option=--version', local_checkout(
- 'git+http://github.com/jezdez/django-staticfiles.git@0.3.1#egg=django-staticfiles'
+ 'git+http://github.com/pypa/pip-test-package.git@0.1.1#egg=pip-test-package'
), expect_error=True)
- assert '0.3.1\n' in result.stdout
+ assert '0.1.1\n' in result.stdout
+
def test_git_with_editable_where_egg_contains_dev_string():
"""
@@ -101,6 +104,7 @@ def test_git_with_editable_where_egg_contains_dev_string():
local_checkout('git+git://github.com/dcramer/django-devserver.git'))
result.assert_installed('django-devserver', with_files=['.git'])
+
def test_git_with_non_editable_where_egg_contains_dev_string():
"""
Test cloning a git repository from a non-editable url which contains "dev" string