def test_install_folder_using_relative_path(script):
 script.scratch_path.join('initools').mkdir()
 script.scratch_path.join('initools', 'mock').mkdir()
 pkg_path = ((script.scratch_path / 'initools') / 'mock')
 pkg_path.join('setup.py').write(mock100_setup_py)
 result = script.pip('install', (Path('initools') / 'mock'))
 egg_folder = ((script.site_packages / 'mock-100.1-py%s.egg-info') % pyversion)
 assert (egg_folder in result.files_created), str(result)

def test_install_folder_using_relative_path ( script ) : script . scratch_path . join ( 'initools' ) . mkdir ( ) script . scratch_path . join ( 'initools' , 'mock' ) . mkdir ( ) pkg_path = ( ( script . scratch_path / 'initools' ) / 'mock' ) pkg_path . join ( 'setup.py' ) . write ( mock100_setup_py ) result = script . pip ( 'install' , ( Path ( 'initools' ) / 'mock' ) ) egg_folder = ( ( script . site_packages / 'mock-100.1-py%s.egg-info' ) % pyversion ) assert ( egg_folder in result . files_created ) , str ( result )
test installing a folder using pip install folder1/folder2 .