File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -699,3 +699,29 @@ def test_category_not_sorted_without_directive(pipenv_instance_private_pypi):
699
699
"colorama" ,
700
700
"build" ,
701
701
]
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
+ ]
You can’t perform that action at this time.
0 commit comments