Skip to content

Commit

Permalink
add test case for pypa#6171
Browse files Browse the repository at this point in the history
  • Loading branch information
Naofal-Helal committed Sep 19, 2024
1 parent 680f59b commit bf0fbd2
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tests/integration/test_install_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -699,3 +699,29 @@ def test_category_not_sorted_without_directive(pipenv_instance_private_pypi):
"colorama",
"build",
]


@pytest.mark.basic
@pytest.mark.install
def test_category_sorted_with_directive_when_insalling_with_extras(
pipenv_instance_private_pypi,
):
with pipenv_instance_private_pypi() as p:
with open(p.pipfile_path, "w+") as f:
contents = """
[pipenv]
sort_pipfile = true
[packages]
atomicwrites = "*"
six = "*"
""".strip()
f.write(contents)
c = p.pipenv("install requests[socks]")
assert c.returncode == 0
assert "requests" in p.pipfile["packages"]
assert list(p.pipfile["packages"].keys()) == [
"atomicwrites",
"requests",
"six",
]

0 comments on commit bf0fbd2

Please sign in to comment.