aboutsummaryrefslogtreecommitdiffstats
path: root/tests (follow)
Commit message (Collapse)AuthorAgeLines
* Reminders: fix conflict with the _can_modify checkGravatar MarkKoz2020-09-09-56/+93
|\
| * Merge branch 'master' into remove-wolframGravatar Leon Sandøy2020-09-02-0/+22
| |\
| | * Fixed old tests and added 2 new onesGravatar wookie1842020-09-01-0/+22
| | |
| * | Removed ImagePaginator testing.Gravatar Xithrius2020-08-31-15/+0
| |/
| * Merge branch 'master' into feat/backend/707/alias-decoratorGravatar Shirayuki Nekomata2020-08-26-32/+55
| |\
| | * Update tests for user commandsGravatar Joseph Banks2020-08-14-32/+55
| | |
| * | Include root aliases in the command name conflict testGravatar MarkKoz2020-08-22-0/+1
| |/
| * Merge branch 'master' into whitelist_systemGravatar Leon Sandøy2020-08-03-3/+946
| |\
| * | Fix broken antimalware tests.Gravatar Leon Sandøy2020-07-29-1/+1
| | |
| * | Restructure bot.filter_list_cache.Gravatar Leon Sandøy2020-07-29-5/+5
| | | | | | | | | | | | | | | | | | | | | This is an optimization designed to eliminate all the list comprehensions we were doing inside antimalware and filtering. The cache is now structured so that the content is the key and the metadata is the value.
| * | Rename AllowDenyList to FilterListsGravatar Leon Sandøy2020-07-27-1/+1
| | |
| * | Remove AntiMalWare constants, use cache data.Gravatar Leon Sandøy2020-07-18-9/+15
| | | | | | | | | | | | Also updates the tests for this cog.
* | | Decorators: clean up importsGravatar MarkKoz2020-07-31-2/+2
| |/ |/|
* | Jam tests: use the MAX_CHANNELS constant moreGravatar MarkKoz2020-07-22-4/+4
| | | | | | | | It's clearer to write MAX_CHANNELS - 2 than a literal 48.
* | Jam tests: assert equality of new categoryGravatar MarkKoz2020-07-22-1/+2
| |
* | Jam tests: add subtests to non-existent category testGravatar MarkKoz2020-07-22-7/+18
| | | | | | | | | | The test has to account for not only the name not matching, but also a lack of available spaces for new channels.
* | Jam tests: fix category testGravatar MarkKoz2020-07-22-14/+24
| |
* | Merge branch 'master' into jam-testGravatar Mark2020-07-22-185/+1384
|\ \
| * | Edited tests to reflect changes (removed py formatting)Gravatar wookie1842020-07-20-3/+3
| | |
| * | Merge 'master' into 'kwzrd/incidents'; resolve config conflictsGravatar kwzrd2020-07-16-39/+24
| |\| | | | | | | | | | | | | | | | | | | | | | | | | Add upstream changes & resolve config conflicts introduced by #1041. In the conflicting parts of the diff, this commit also re-sorts constants which were added upstream to lexicographical order. This does **not** re-sort all constants added upstream.
| | * Merge branch 'master' into dm_relayGravatar Leon Sandøy2020-07-15-0/+12
| | |\
| | | * edit snekbox tests to work with filteringGravatar Slushie2020-07-13-0/+12
| | | |
| | * | Fix DuckPond tests now that send_webhook is gone.Gravatar Leon Sandøy2020-07-12-39/+12
| | |/ | | | | | | | | | | | | | | | | | | | | | Some of the tests were failing because they were expecting send_webhook to be a method of the DuckPond cog, other tests simply were no longer applicable, and have been removed. https://github.com/python-discord/bot/issues/667
| * | Incidents: reduce log level of 404 exceptionGravatar kwzrd2020-07-16-2/+12
| | | | | | | | | | | | Co-authored-by: MarkKoz <[email protected]>
| * | Incidents: link `proxy_url` if attachment fails to downloadGravatar kwzrd2020-07-14-37/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Suggested by Mark during review. If the download fails, we fallback on showing an informative message, which will link the attachment cdn link. The attachment-handling logic was moved from the `archive` coroutine into `make_embed`, which now also returns the file, if available. In the end, this appears to be the smoothest approach. Co-authored-by: MarkKoz <[email protected]>
| * | Incidents: add `download_file` helper & testsGravatar kwzrd2020-07-13-0/+20
| | | | | | | | | | | | Co-authored-by: MarkKoz <[email protected]>
| * | Incidents tests: improve in-line comment wordingGravatar kwzrd2020-07-09-1/+1
| | | | | | | | | | | | Co-authored-by: MarkKoz <[email protected]>
| * | Merge 'master' into 'kwzrd/incidents'; resolve mod pkg init conflictGravatar kwzrd2020-07-08-24/+242
| |\|
| | * Fix imports in slowmode testsGravatar Den42002020-07-06-3/+3
| | |
| | * Improve set_slowmode tests by checking whether the channel was editedGravatar Den42002020-07-06-8/+22
| | |
| | * Add multiple test cases for set_slowmode testsGravatar Den42002020-07-06-10/+34
| | |
| | * Use local text_channel instead of instance attributeGravatar Den42002020-07-06-13/+10
| | |
| | * Add tests for set_slowmodeGravatar Den42002020-07-06-0/+20
| | |
| | * Add tests for reset_slowmodeGravatar Den42002020-07-06-3/+22
| | |
| | * Add tests for cog_check and get_slowmodeGravatar Den42002020-07-06-0/+37
| | |
| | * Merge branch 'master' into issue926-paginate-long-linesGravatar Kyle Stanley2020-06-26-191/+514
| | |\
| | | * Merge branch 'master' into bug/backend/bot-50/sync-ignore-guildsGravatar kwzrd2020-06-22-10/+85
| | | |\
| | | | * Merge branch 'master' into logging-testsGravatar Kieran Siek2020-06-22-200/+1047
| | | | |\
| | | | * | Logging Tests: Simplify `DEBUG_MODE` `False` testGravatar ks1292020-05-22-11/+1
| | | | | | | | | | | | | | | | | | | | | | | | - Remove embed attributes checks - Replace `self.dev_log.assert_awaited_once_with` with `self.dev_log.assert_awaited_once`.
| | | | * | Merge branch 'master' into logging-testsGravatar ks1292020-05-17-10/+178
| | | | |\ \
| | | | * | | Created tests for `bot.cogs.logging` connected message.Gravatar ks1292020-04-14-0/+42
| | | | | | |
| | | * | | | Sync: fix guild ID checkGravatar MarkKoz2020-06-17-16/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Need to compare the IDs against each other rather than the Guild object against the ID.
| | | * | | | Sync: ignore 404s in on_user_updateGravatar MarkKoz2020-06-14-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 404s probably mean the user is from another guild.
| | | * | | | Sync tests: test listeners ignore events from other guildsGravatar MarkKoz2020-06-14-10/+54
| | | | | | |
| | * | | | | In LinePaginator, truncate words that exceed scale_to_sizeGravatar Kyle Stanley2020-06-26-7/+5
| | | | | | |
| | * | | | | Update LinePaginator.add_line() testsGravatar Kyle Stanley2020-06-26-5/+5
| | | | | | |
| | * | | | | Merge branch 'master' into issue926-paginate-long-linesGravatar Kyle Stanley2020-06-04-40/+645
| | |\ \ \ \ \
| | * | | | | | Improve LinePaginator to support long linesGravatar Kyle Stanley2020-06-04-7/+34
| | | | | | | |
| * | | | | | | Incidents: archive incident attachmentsGravatar kwzrd2020-07-03-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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]>
| * | | | | | | Incidents: relay incidents as embeds rather than raw contentGravatar kwzrd2020-07-01-21/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This applies the previously defined `make_embed` function. As the `archive` function is now simpler, I decided to reduce the amount of whitespace ~ it's a lot more compact now. Tests are adjusted as appropriate.