From 58c68ec17ed964980ad50daaef26f24447651cb3 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Fri, 19 Aug 2022 15:53:15 +0100 Subject: [PATCH] tests/Gateway/post_upload: Fix assert * dc_msg is a webtest object, so need to explicitly check its `body`. * And that `body` is bytes, not str, so test against `b'OK'`. --- src/tests/gateway/test_post_upload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/gateway/test_post_upload.py b/src/tests/gateway/test_post_upload.py index 3ba9e98..fa33413 100644 --- a/src/tests/gateway/test_post_upload.py +++ b/src/tests/gateway/test_post_upload.py @@ -27,4 +27,4 @@ def test_plain_message(eddn_message: Callable) -> None: }, ) - assert dc_msg == 'OK' + assert dc_msg.body == b'OK'