def test_ensure_wheel_files_uploaded_first(): files = upload.group_wheel_files_first([ "twine/foo.py", "twine/first.whl", "twine/bar.py", "twine/second.whl" ]) expected = [ "twine/first.whl", "twine/second.whl", "twine/foo.py", "twine/bar.py" ] assert expected == files
def test_ensure_wheel_files_uploaded_first(): files = upload.group_wheel_files_first(["twine/foo.py", "twine/first.whl", "twine/bar.py", "twine/second.whl"]) expected = ["twine/first.whl", "twine/second.whl", "twine/foo.py", "twine/bar.py"] assert expected == files
def test_ensure_if_no_wheel_files(): files = upload.group_wheel_files_first(["twine/foo.py", "twine/bar.py"]) expected = ["twine/foo.py", "twine/bar.py"] assert expected == files