@pytest.mark.network
def test_upgrade_from_reqs_file(script):
 script.scratch_path.join('test-req.txt').write(textwrap.dedent('        PyLogo<0.4\n        # and something else to test out:\n        INITools==0.3\n        '))
 install_result = script.pip('install', '-r', (script.scratch_path / 'test-req.txt'))
 script.scratch_path.join('test-req.txt').write(textwrap.dedent('        PyLogo\n        # and something else to test out:\n        INITools\n        '))
 script.pip('install', '--upgrade', '-r', (script.scratch_path / 'test-req.txt'))
 uninstall_result = script.pip('uninstall', '-r', (script.scratch_path / 'test-req.txt'), '-y')
 assert_all_changes(install_result, uninstall_result, [(script.venv / 'build'), 'cache', (script.scratch / 'test-req.txt')])

@ pytest . mark . network def test_upgrade_from_reqs_file ( script ) : script . scratch_path . join ( 'test-req.txt' ) . write ( textwrap . dedent ( '        PyLogo<0.4\n        # and something else to test out:\n        INITools==0.3\n        ' ) ) install_result = script . pip ( 'install' , '-r' , ( script . scratch_path / 'test-req.txt' ) ) script . scratch_path . join ( 'test-req.txt' ) . write ( textwrap . dedent ( '        PyLogo\n        # and something else to test out:\n        INITools\n        ' ) ) script . pip ( 'install' , '--upgrade' , '-r' , ( script . scratch_path / 'test-req.txt' ) ) uninstall_result = script . pip ( 'uninstall' , '-r' , ( script . scratch_path / 'test-req.txt' ) , '-y' ) assert_all_changes ( install_result , uninstall_result , [ ( script . venv / 'build' ) , 'cache' , ( script . scratch / 'test-req.txt' ) ] )
upgrade from a requirements file .