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:
Athanasius 2022-08-19 15:53:15 +01:00
parent 00fed9b36a
commit 58c68ec17e
No known key found for this signature in database
GPG Key ID: 8C392035DD80FD62

View File

@ -27,4 +27,4 @@ def test_plain_message(eddn_message: Callable) -> None:
},
)
assert dc_msg == 'OK'
assert dc_msg.body == b'OK'