Exemple #1
0
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
Exemple #2
0
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
Exemple #3
0
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
Exemple #4
0
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