diff options
| author | 2020-07-03 10:47:47 +0200 | |
|---|---|---|
| committer | 2020-07-03 10:49:02 +0200 | |
| commit | 83544ca0f91dd7bc8510e4fc7a64bc73712ddaf8 (patch) | |
| tree | 8e086f939b4718b8b67328e8ef1db7b951e345a1 /tests/helpers.py | |
| parent | Incidents: trace-level log incident embed creation (diff) | |
Incidents: archive incident attachments
There is no handling of file types as explained in the `archive`
docstring. Testing indicates that relaying incidents with e.g. a text
file attachment is simply a noop in the Discord GUI.
If there is at least one attachment, we always only relay the one
at index 0, as it is believed the user-sent messages can only contain
one attachment at maximum.
This also adds an extra test asserting the behaviour when an incident
with an attachment is archived. The existing test for `archive` is
adjusted to assume no attachments.
Joe helped me conceive & test this.
Co-authored-by: Joseph Banks <[email protected]>
Diffstat (limited to 'tests/helpers.py')
0 files changed, 0 insertions, 0 deletions