mirror of https://github.com/pypa/pip
Simple test to check --root option functionality
This commit is contained in:
parent
061954f29d
commit
1faa0c1876
|
@ -491,6 +491,17 @@ def test_install_package_with_target():
|
|||
assert Path('scratch')/'target'/'initools' in result.files_created, str(result)
|
||||
|
||||
|
||||
def test_install_package_with_root():
|
||||
"""
|
||||
Test installing a package using pip install --root
|
||||
"""
|
||||
env = reset_env()
|
||||
root_dir = env.scratch_path/'root'
|
||||
result = run_pip('install', '--root', root_dir, '--install-option=--home=', "initools==0.1")
|
||||
|
||||
assert Path('scratch')/'root'/'lib'/'python'/'initools' in result.files_created, 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
|
||||
|
|
Loading…
Reference in New Issue