mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-27 21:52:14 +03:00
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'`.
This commit is contained in:
parent
00fed9b36a
commit
58c68ec17e
@ -27,4 +27,4 @@ def test_plain_message(eddn_message: Callable) -> None:
|
||||
},
|
||||
)
|
||||
|
||||
assert dc_msg == 'OK'
|
||||
assert dc_msg.body == b'OK'
|
||||
|
Loading…
x
Reference in New Issue
Block a user