@pytest.mark.network
def test_multiple_requirements_files(script, tmpdir):
 (other_lib_name, other_lib_version) = ('anyjson', '0.3')
 script.scratch_path.join('initools-req.txt').write((textwrap.dedent('\n            -e %s@10#egg=INITools-dev\n            -r %s-req.txt\n        ') % (local_checkout('svn+http://svn.colorstudy.com/INITools/trunk', tmpdir.join('cache')), other_lib_name)))
 script.scratch_path.join(('%s-req.txt' % other_lib_name)).write(('%s<=%s' % (other_lib_name, other_lib_version)))
 result = script.pip('install', '-r', (script.scratch_path / 'initools-req.txt'))
 assert result.files_created[(script.site_packages / other_lib_name)].dir
 fn = ('%s-%s-py%s.egg-info' % (other_lib_name, other_lib_version, pyversion))
 assert result.files_created[(script.site_packages / fn)].dir
 assert (((script.venv / 'src') / 'initools') in result.files_created)

@ pytest . mark . network def test_multiple_requirements_files ( script , tmpdir ) : ( other_lib_name , other_lib_version ) = ( 'anyjson' , '0.3' ) script . scratch_path . join ( 'initools-req.txt' ) . write ( ( textwrap . dedent ( '\n            -e %s@10#egg=INITools-dev\n            -r %s-req.txt\n        ' ) % ( local_checkout ( 'svn+http://svn.colorstudy.com/INITools/trunk' , tmpdir . join ( 'cache' ) ) , other_lib_name ) ) ) script . scratch_path . join ( ( '%s-req.txt' % other_lib_name ) ) . write ( ( '%s<=%s' % ( other_lib_name , other_lib_version ) ) ) result = script . pip ( 'install' , '-r' , ( script . scratch_path / 'initools-req.txt' ) ) assert result . files_created [ ( script . site_packages / other_lib_name ) ] . dir fn = ( '%s-%s-py%s.egg-info' % ( other_lib_name , other_lib_version , pyversion ) ) assert result . files_created [ ( script . site_packages / fn ) ] . dir assert ( ( ( script . venv / 'src' ) / 'initools' ) in result . files_created )
test installing from multiple nested requirements files .