diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-01-19 20:40:32 +0100 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:53 +0100 |
commit | d6b4f505d53e69ecb39d518a89d8d0013e22ad51 (patch) | |
tree | 2826b143dcf48d078d678255f6f7b0d715dc6c43 /tests | |
parent | 18f59853a045365b3d6bab26ca5d599b8cbc82db (diff) | |
download | wee-slack-d6b4f505d53e69ecb39d518a89d8d0013e22ad51.tar.gz |
Print error message on http/api error
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_http_request.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_http_request.py b/tests/test_http_request.py index 300882d..3c74e1f 100644 --- a/tests/test_http_request.py +++ b/tests/test_http_request.py @@ -44,7 +44,7 @@ def test_http_request_error_process_return_code(): assert excinfo.value.url == url assert excinfo.value.return_code == -2 - assert excinfo.value.http_status == 0 + assert excinfo.value.http_status_code == 0 assert excinfo.value.error == "" @@ -58,7 +58,7 @@ def test_http_request_error_process_stderr(): assert excinfo.value.url == url assert excinfo.value.return_code == 0 - assert excinfo.value.http_status == 0 + assert excinfo.value.http_status_code == 0 assert excinfo.value.error == "err" @@ -75,7 +75,7 @@ def test_http_request_error_process_http(): assert excinfo.value.url == url assert excinfo.value.return_code == 0 - assert excinfo.value.http_status == 400 + assert excinfo.value.http_status_code == 400 assert excinfo.value.error == response @@ -110,7 +110,7 @@ def test_http_request_error_retry_error(): assert excinfo.value.url == url assert excinfo.value.return_code == -2 - assert excinfo.value.http_status == 0 + assert excinfo.value.http_status_code == 0 assert excinfo.value.error == "" |