Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Base64 attachments #67

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

Era-Dorta
Copy link
Collaborator

@Era-Dorta Era-Dorta commented Jun 18, 2024

This is a rebase of #12 on top of the current master.

Message.parse() takes `signal: SignalAPI` instance as parameter,
which allows us to call its new get_attachment() method.
As a result, the Message.parse() needs to be `async` now.
@Era-Dorta
Copy link
Collaborator Author

Hi @filipre , it's been a while but I got again some time to work on this. Let me know if there is anything else that I should do to get this and #70 merged.

self.assertEqual(message.reaction, "👍")

@patch("aiohttp.ClientSession.get", new_callable=AsyncMock)
async def test_attachments(self, mock_get):
Copy link
Collaborator Author

@Era-Dorta Era-Dorta Oct 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test is not enough, it only tests receiving attachments. Should check sending an attachment. Probably also add a new message with an attachment here too https://github.com/filipre/signalbot/blob/master/tests/test_api.py#L36C15-L36C27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants