From f382d7ef21b22be53a9368e70c862e3ecb25270d Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 26 Apr 2023 14:27:13 +1000 Subject: [PATCH] Disable httpstat.us tests (#4699) - Uptime of the eternal service is not great - For now, disable tests - Potentially reintroduce these at some point in the future --- InvenTree/InvenTree/tests.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/InvenTree/InvenTree/tests.py b/InvenTree/InvenTree/tests.py index c2093ffac7..d877c8fdc3 100644 --- a/InvenTree/InvenTree/tests.py +++ b/InvenTree/InvenTree/tests.py @@ -14,7 +14,6 @@ from django.contrib.sites.models import Site from django.core.exceptions import ValidationError from django.test import TestCase, override_settings -import requests from djmoney.contrib.exchange.exceptions import MissingRate from djmoney.contrib.exchange.models import Rate, convert_money from djmoney.money import Money @@ -287,10 +286,12 @@ class TestHelpers(TestCase): time.sleep(10 * tries) # Attempt to download an image which throws a 404 - dl_helper("https://httpstat.us/404", requests.exceptions.HTTPError, timeout=10) + # TODO: Re-implement this test when we are happier with the external service + # dl_helper("https://httpstat.us/404", requests.exceptions.HTTPError, timeout=10) # Attempt to download, but timeout - dl_helper("https://httpstat.us/200?sleep=5000", requests.exceptions.ReadTimeout, timeout=1) + # TODO: Re-implement this test when we are happier with the external service + # dl_helper("https://httpstat.us/200?sleep=5000", requests.exceptions.ReadTimeout, timeout=1) large_img = "https://github.com/inventree/InvenTree/raw/master/InvenTree/InvenTree/static/img/paper_splash_large.jpg"