Skip testing of package if SF is offline

This commit is contained in:
Valeriy Koval
2015-02-25 18:32:33 +02:00
parent 03636ad4ae
commit cd764d4b10

View File

@@ -61,7 +61,7 @@ def test_package(package_data, sfpkglist):
# check sha1 sum
if sfpkglist is None:
return
return pytest.skip("SF is offline")
pkgname = basename(package_data['url'])
assert pkgname in sfpkglist
assert package_data['sha1'] == sfpkglist.get(pkgname, {}).get("sha1")