diff --git a/tests/utils/test_http_client.py b/tests/utils/test_http_client.py index 9fb4f8704..aadb886ce 100644 --- a/tests/utils/test_http_client.py +++ b/tests/utils/test_http_client.py @@ -2,8 +2,6 @@ import platform from unittest import TestCase, mock -from requests import Session - from launchable.utils.http_client import _HttpClient from launchable.version import __version__ @@ -45,19 +43,3 @@ def test_header(self): "dummy", ), }) - - def test_reason(self): - '''make sure we correctly propagate error message from the server''' - - # use new session to disable retry - cli = _HttpClient(session=Session()) - # /raise_error is an actual endpoint that exists on our service to test the behavior - res = cli.request("GET", "intake/raise_error") - self.assertEqual(res.status_code, 500) - self.assertEqual(res.reason, "Welp") - - try: - res.raise_for_status() - self.fail("should have raised") - except Exception as e: - self.assertIn("Welp", str(e))