Exemplo n.º 1
0
def test_version_parse_with_dot_x():
    """Test version parsing to fail on wildcard type of version string."""
    v = '1.19.x'

    h = ProjectHolder()

    assert h.sanitize_version(v) is False
Exemplo n.º 2
0
def test_version_parse_dev3():
    v = '7.18.1'

    h = ProjectHolder()

    v = h.sanitize_version(v, pre_ok=True)

    assert v.is_prerelease is False
Exemplo n.º 3
0
def test_version_parse_dev():
    v = '1.19rc1'

    h = ProjectHolder()

    v = h.sanitize_version(v, pre_ok=True)

    assert v.is_prerelease is True
Exemplo n.º 4
0
def test_version_parse_dev3():
    """Test parsing stable version leaves pre-release flag false."""
    v = '7.18.1'

    h = ProjectHolder()

    v = h.sanitize_version(v, pre_ok=True)

    assert v.is_prerelease is False
Exemplo n.º 5
0
def test_version_parse_dev2():
    """Test version parsing to detect -rc.2 type suffix as a pre-release."""
    v = '7.18.1-rc.2'

    h = ProjectHolder()

    v = h.sanitize_version(v, pre_ok=True)

    assert v.is_prerelease is True
Exemplo n.º 6
0
def test_version_parse_dev():
    """Test version parsing to detect rc1 type suffix as a pre-release."""
    v = '1.19rc1'

    h = ProjectHolder()

    v = h.sanitize_version(v, pre_ok=True)

    assert v.is_prerelease is True
Exemplo n.º 7
0
def test_version_parse_with_dot_x():
    v = '1.19.x'

    h = ProjectHolder()

    assert h.sanitize_version(v) is False