Closed caronc closed 1 month ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 99.28%. Comparing base (
e289279
) to head (d3a2d7b
).
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Definitely appreciated as your code enhancement removes my need for juggling with temporary files.
Cheers @caronc - and: thank you! Joerg
Description:
Related issue (if applicable): n/a
It was requested on Discord to avoid passing along large ntfy messages since the upstream blocks them. However to simulate what the ntfy cli does, it takes large body/title content and creates an attachment from it. It specifically targets the
JSON body too large
Error message the ntfy server sends back if your message is to large for it.The largest feature introduced into this PR is the introduction of a memory based Attachment file. @joergschultzelutter may appreciate this as he asked for it earlier.
The use case for the memory attachment is so you don't have to write a temporary file to disk and then reference the content as an
AttachFile
Checklist
flake8
)Testing
Anyone can help test this source code as follows: