Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing test for #3583 #3882

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions tests/integration/test_lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -660,3 +660,30 @@ def test_lock_after_update_source_name(PipenvInstance):
assert c.return_code == 0
assert "index" in p.lockfile["default"]["six"]
assert p.lockfile["default"]["six"]["index"] == "custom", Path(p.lockfile_path).read_text() # p.lockfile["default"]["six"]


@pytest.mark.files
@pytest.mark.lock
def test_lock_with_aliased_package_name(PipenvInstance):
with PipenvInstance(chdir=True) as p:
whl = Path(__file__).parent.parent.joinpath(
"pypi", "six", "six-1.11.0-py2.py3-none-any.whl"
)
try:
whl = whl.resolve()
except OSError:
whl = whl.absolute()
contents = """
[[source]]
url = "https://test.pypi.org/simple"
verify_ssl = true
name = "test"

[packages]
s_i_x = {{ path = "{whl}" }}
""".format(whl=whl).strip()
with open(p.pipfile_path, 'w') as f:
f.write(contents)
c = p.pipenv('lock')
assert c.return_code == 0
assert not ("s-i-x" in p.lockfile and "six" in p.lockfile)