예제 #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
예제 #2
0
파일: test_upload.py 프로젝트: a-tal/twine
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
예제 #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
예제 #4
0
파일: test_upload.py 프로젝트: a-tal/twine
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