@pytest.mark.network
def test_editables_legacy(script, data):
 script.pip('install', '-f', data.find_links, '--no-index', 'simple==1.0')
 script.pip('install', '-e', 'git+https://github.com/pypa/pip-test-package.git#egg=pip-test-package')
 result = script.pip('list', '--editable', '--format=legacy', expect_stderr=True)
 assert ('simple (1.0)' not in result.stdout), str(result)
 assert (os.path.join('src', 'pip-test-package') in result.stdout), str(result)

@ pytest . mark . network def test_editables_legacy ( script , data ) : script . pip ( 'install' , '-f' , data . find_links , '--no-index' , 'simple==1.0' ) script . pip ( 'install' , '-e' , 'git+https://github.com/pypa/pip-test-package.git#egg=pip-test-package' ) result = script . pip ( 'list' , '--editable' , '--format=legacy' , expect_stderr = True ) assert ( 'simple (1.0)' not in result . stdout ) , str ( result ) assert ( os . path . join ( 'src' , 'pip-test-package' ) in result . stdout ) , str ( result )
test the behavior of --editables flag in the list command .