Add test for --target option.

This commit is contained in:
Stavros Korokithakis 2012-02-03 14:31:28 +02:00
parent eb03ec0dc1
commit 886efa7bb1
1 changed files with 13 additions and 0 deletions

View File

@ -518,6 +518,19 @@ def test_install_package_which_contains_dev_in_name():
assert egg_info_folder in result.files_created, str(result)
def test_install_package_with_target():
"""
Test installing a package using pip install --target
"""
env = reset_env()
1/0
target_dir = env.scratch_path/'target'
package = 'shortuuid'
result = run_pip('install', '-t', target_dir, package)
contents = os.path.listdir(target_dir)
assert package in contents, str(result)
def test_find_command_folder_in_path():
"""
If a folder named e.g. 'git' is in PATH, and find_command is looking for