ci: Mypy stage 2 (bad)

This commit is contained in:
2023-11-02 10:50:42 +01:00
parent e5e364b97a
commit 5aa4f16a5a
3 changed files with 27 additions and 14 deletions

View File

@@ -59,8 +59,11 @@ async def test_client() -> None:
img_data = b""
async for msg in api.call("blobs.get", ["&kqZ52sDcJSHOx7m4Ww80kK1KIZ65gpGnqwZlfaIVWWM=.sha256"], "source"):
assert msg
if msg.type.name == "BUFFER":
img_data += msg.data
if msg.type.name == "JSON" and msg.data == b"true":
assert (
base64.b64encode(hashlib.sha256(img_data).digest()) == b"kqZ52sDcJSHOx7m4Ww80kK1KIZ65gpGnqwZlfaIVWWM="