Skip to content

Commit bf0fbd2

Browse files
committed
add test case for pypa#6171
1 parent 680f59b commit bf0fbd2

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

tests/integration/test_install_basic.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -699,3 +699,29 @@ def test_category_not_sorted_without_directive(pipenv_instance_private_pypi):
699699
"colorama",
700700
"build",
701701
]
702+
703+
704+
@pytest.mark.basic
705+
@pytest.mark.install
706+
def test_category_sorted_with_directive_when_insalling_with_extras(
707+
pipenv_instance_private_pypi,
708+
):
709+
with pipenv_instance_private_pypi() as p:
710+
with open(p.pipfile_path, "w+") as f:
711+
contents = """
712+
[pipenv]
713+
sort_pipfile = true
714+
715+
[packages]
716+
atomicwrites = "*"
717+
six = "*"
718+
""".strip()
719+
f.write(contents)
720+
c = p.pipenv("install requests[socks]")
721+
assert c.returncode == 0
722+
assert "requests" in p.pipfile["packages"]
723+
assert list(p.pipfile["packages"].keys()) == [
724+
"atomicwrites",
725+
"requests",
726+
"six",
727+
]

0 commit comments

Comments
 (0)