def test_getrelease_invalid(getreleases): with pytest.raises(InvalidRelease): str(Package.get_release("ant31/rocketchat", "==4.25a"))
def test_getrelease_default(getreleases): assert str(Package.get_release("ant31/rocketchat", "default")) == "1.8.2-rc2"
def test_getrelease_stable_none(getreleases): assert str(Package.get_release("ant31/rocketchat", None, True)) == "1.4.2"
def test_getrelease_prerelease(getreleases): str(Package.get_release("ant31/rocketchat", ">=0-")) == "1.8.2-rc2"