Пример #1
0
def test_getrelease_invalid(getreleases):
    with pytest.raises(InvalidRelease):
        str(Package.get_release("ant31/rocketchat", "==4.25a"))
Пример #2
0
def test_getrelease_default(getreleases):
    assert str(Package.get_release("ant31/rocketchat",
                                   "default")) == "1.8.2-rc2"
Пример #3
0
def test_getrelease_stable_none(getreleases):
    assert str(Package.get_release("ant31/rocketchat", None, True)) == "1.4.2"
Пример #4
0
def test_getrelease_prerelease(getreleases):
    str(Package.get_release("ant31/rocketchat", ">=0-")) == "1.8.2-rc2"