aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2020-10-08Silence tests: make _async_init attribute tests more robustGravatar MarkKoz-7/+11
2020-10-08Silence: remove _mod_log_channel attributeGravatar MarkKoz-3/+2
It's only used as an argument to `SilenceNotifier`, so it doesn't need to be an instance attribute.
2020-10-08Silence: add to notifier when indefinite rather than temporaryGravatar MarkKoz-7/+7
Accidentally swapped the logic in a previous commit during a refactor.
2020-10-07Silence tests: fix unawaited coro warningsGravatar MarkKoz-2/+7
Because the Scheduler is mocked, it doesn't actually do anything with the coroutines passed to the schedule() functions, hence the warnings.
2020-10-06Silence: rename _init_cog to _async_initGravatar MarkKoz-15/+15
2020-10-06Silence: refactor _silenceGravatar MarkKoz-33/+32
* Rename to `_silence_overwrites` * Reduce responsibilities to only setting permission overwrites * Log in `silence` instead * Add to notifier in `silence` instead
2020-10-06Silence: move unsilence scheduling to a separate functionGravatar MarkKoz-8/+13