Skip to content

Commit 7342f9d

Browse files
MHHukiewitzhoh
authored andcommitted
Cleanup: Format and solve overlooked mypy issues that were not tested in PR workflow
1 parent b09cfd2 commit 7342f9d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/unit/test_asynchronous.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ async def __aexit__(self, exc_type, exc_val, exc_tb):
3232
@property
3333
def status(self):
3434
return 200 if self.sync else 202
35-
35+
3636
async def raise_for_status(self):
3737
...
3838

tests/unit/test_upload.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import hashlib
22

33
import pytest
4-
from aleph_message.models import StoreMessage
4+
from aleph_message.models import AlephMessage, StoreMessage
55
from aleph_message.status import MessageStatus
66

77
from aleph.sdk import AuthenticatedAlephHttpClient
@@ -33,7 +33,7 @@ async def test_upload_with_message():
3333
server_content = await client.download_file(file_hash=file_hash)
3434
assert server_content == content
3535

36-
server_message = await client.get_message(
36+
server_message: AlephMessage = await client.get_message(
3737
item_hash=message.item_hash, message_type=StoreMessage
3838
)
39-
assert server_message.content.item_hash == file_hash
39+
assert server_message.content.item_hash == file_hash

0 commit comments

Comments
 (0)