From 369d0e1a0040f7f4331cb7607dbaaaa8ab9d6f96 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Mon, 1 Jun 2015 17:49:04 +0300 Subject: [PATCH] Fix response with 504 code when SF is off-line --- tests/test_pkgmanifest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_pkgmanifest.py b/tests/test_pkgmanifest.py index b33bb798..87e925d4 100644 --- a/tests/test_pkgmanifest.py +++ b/tests/test_pkgmanifest.py @@ -56,6 +56,8 @@ def test_package(package_data, sfpkglist): # check content type and that file exists try: r = requests.head(package_data['url'], allow_redirects=True) + if r.status_code == 504: + raise requests.exceptions.ConnectionError() except requests.exceptions.ConnectionError: return pytest.skip("SF is off-line")