aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-09-16 16:23:14 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:54 +0100
commit748991ae4d0bf3726b4a1eeb851b2d3a6446b2bb (patch)
tree5ac2479ecc4abc2ef96c5d38eafc26f1d90ccf2d /tests
parent30eea6bb1f4278b79583e8130aef5e404411a31b (diff)
downloadwee-slack-748991ae4d0bf3726b4a1eeb851b2d3a6446b2bb.tar.gz
Use None instead of 0 for missing http code in HttpError
Diffstat (limited to 'tests')
-rw-r--r--tests/test_http_request.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_http_request.py b/tests/test_http_request.py
index a9e941d..1a0b4a0 100644
--- a/tests/test_http_request.py
+++ b/tests/test_http_request.py
@@ -49,7 +49,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_code == 0
+ assert excinfo.value.http_status_code == None
assert excinfo.value.error == ""
@@ -66,7 +66,7 @@ def test_http_request_error_process_stderr():
assert excinfo.value.url == url
assert excinfo.value.return_code == 0
- assert excinfo.value.http_status_code == 0
+ assert excinfo.value.http_status_code == None
assert excinfo.value.error == "err"
@@ -143,7 +143,7 @@ def test_http_request_error_retry_error():
assert excinfo.value.url == url
assert excinfo.value.return_code == -2
- assert excinfo.value.http_status_code == 0
+ assert excinfo.value.http_status_code == None
assert excinfo.value.error == ""