Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_tdesktop():
repo = "https://github.com/telegramdesktop/tdesktop/releases"
output = latest(repo, 'version', False)
assert output >= version.parse('1.8.1')
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")
def test_changed_format():
repo = "https://github.com/nginx-shib/nginx-http-shibboleth/releases"
output = latest(repo)
assert output == version.parse("2.0.1")
def test_grafana():
repo = "grafana/grafana"
output = latest(repo)
assert output >= version.parse("6.2.2")
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")
def test_naxsi():
repo = "https://github.com/nbs-system/naxsi/releases"
output = latest(repo)
assert output <= version.parse("0.56")
def test_sf_keepass():
repo = 'https://sourceforge.net/projects/keepass'
v = latest(repo)
assert v >= version.parse('2.45')
def test_major():
repo = "https://github.com/SpiderLabs/ModSecurity"
output = latest(repo, major='2.9')
assert output == version.parse("2.9.3")
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'
def test_gperftools():
repo = "https://github.com/gperftools/gperftools/releases"
output = latest(repo)
assert output >= version.parse("2.7")