How to use lastversion - 10 common examples

To help you get started, we’ve selected a few lastversion examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dvershinin / lastversion / tests / test_lastversion.py View on Github external
def test_tdesktop():
    repo = "https://github.com/telegramdesktop/tdesktop/releases"

    output = latest(repo, 'version', False)

    assert output >= version.parse('1.8.1')
github dvershinin / lastversion / tests / test_lastversion.py View on Github external
def test_gitlab_1():
    repo = 'https://gitlab.com/ddcci-driver-linux/ddcci-driver-linux/-/tree/master'

    v = latest(repo)

    assert v == version.parse("0.3.3")
github dvershinin / lastversion / tests / test_lastversion.py View on Github external
def test_changed_format():
    repo = "https://github.com/nginx-shib/nginx-http-shibboleth/releases"

    output = latest(repo)

    assert output == version.parse("2.0.1")
github dvershinin / lastversion / tests / test_lastversion.py View on Github external
def test_grafana():
    repo = "grafana/grafana"

    output = latest(repo)

    assert output >= version.parse("6.2.2")
github dvershinin / lastversion / tests / test_lastversion.py View on Github external
def test_monit():
    repo = "https://mmonit.com/monit/dist/monit-5.26.0.tar.gz"

    output = latest(repo, 'version')

    assert output > version.parse("5.25.0")
github dvershinin / lastversion / tests / test_lastversion.py View on Github external
def test_naxsi():
    repo = "https://github.com/nbs-system/naxsi/releases"

    output = latest(repo)

    assert output <= version.parse("0.56")
github dvershinin / lastversion / tests / test_lastversion.py View on Github external
def test_sf_keepass():
    repo = 'https://sourceforge.net/projects/keepass'

    v = latest(repo)

    assert v >= version.parse('2.45')
github dvershinin / lastversion / tests / test_lastversion.py View on Github external
def test_major():
    repo = "https://github.com/SpiderLabs/ModSecurity"

    output = latest(repo, major='2.9')

    assert output == version.parse("2.9.3")
github dvershinin / lastversion / tests / test_lastversion.py View on Github external
def test_contain_rpm_related_data():
    repo = 'dvershinin/lastversion'

    v = latest(repo, output_format='json')

    assert v['spec_tag'] == 'v%{version}'
    assert v['v_prefix'] is True
    assert v['tag_name'].startswith('v')
    assert v['readme']['path'] == 'README.md'
    assert v['license']['path'] == 'LICENSE'
github dvershinin / lastversion / tests / test_lastversion.py View on Github external
def test_gperftools():
    repo = "https://github.com/gperftools/gperftools/releases"

    output = latest(repo)

    assert output >= version.parse("2.7")