def test_get_vcs_refs(PipenvInstance, pip_src_dir): with PipenvInstance(chdir=True) as p: c = p.pipenv('install -e git+https://github.com/benjaminp/[email protected]#egg=six') assert c.return_code == 0 assert 'six' in p.pipfile['packages'] assert 'six' in p.lockfile['default'] assert p.lockfile['default']['six']['ref'] == '5efb522b0647f7467248273ec1b893d06b984a59' pipfile = Path(p.pipfile_path) new_content = pipfile.read_bytes().replace(b'1.9.0', b'1.11.0') pipfile.write_bytes(new_content) c = p.pipenv('lock') assert c.return_code == 0 assert p.lockfile['default']['six']['ref'] == '15e31431af97e5e64b80af0a3f598d382bcdd49a' assert 'six' in p.pipfile['packages'] assert 'six' in p.lockfile['default']
def test_get_vcs_refs(PipenvInstance, pip_src_dir): with PipenvInstance(chdir=True) as p: c = p.pipenv( "install -e git+https://github.com/benjaminp/[email protected]#egg=six" ) assert c.return_code == 0 assert "six" in p.pipfile["packages"] assert "six" in p.lockfile["default"] assert (p.lockfile["default"]["six"]["ref"] == "5efb522b0647f7467248273ec1b893d06b984a59") pipfile = Path(p.pipfile_path) new_content = pipfile.read_bytes().replace(b"1.9.0", b"1.11.0") pipfile.write_bytes(new_content) c = p.pipenv("lock") assert c.return_code == 0 assert (p.lockfile["default"]["six"]["ref"] == "15e31431af97e5e64b80af0a3f598d382bcdd49a") assert "six" in p.pipfile["packages"] assert "six" in p.lockfile["default"]
def test_get_vcs_refs(PipenvInstance, pip_src_dir): with PipenvInstance(chdir=True) as p: c = p.pipenv( "install -e git+https://github.com/benjaminp/[email protected]#egg=six" ) assert c.return_code == 0 assert "six" in p.pipfile["packages"] assert "six" in p.lockfile["default"] assert ( p.lockfile["default"]["six"]["ref"] == "5efb522b0647f7467248273ec1b893d06b984a59" ) pipfile = Path(p.pipfile_path) new_content = pipfile.read_bytes().replace(b"1.9.0", b"1.11.0") pipfile.write_bytes(new_content) c = p.pipenv("lock") assert c.return_code == 0 assert ( p.lockfile["default"]["six"]["ref"] == "15e31431af97e5e64b80af0a3f598d382bcdd49a" ) assert "six" in p.pipfile["packages"] assert "six" in p.lockfile["default"]