Currently the tests for the !silence commands are pretty slow, taking up almost half of the execution time of the whole test suite.
This PR more than doubles the speed of pytest tests/bot/exts/moderation/test_silence.py (from >5s to <2s for me), resulting in the overall test suite being about 1/3 faster.
This definitely makes sense to look through commit by commit, as the commit descriptions explain each change.
Currently the tests for the
!silence
commands are pretty slow, taking up almost half of the execution time of the whole test suite.This PR more than doubles the speed of
pytest tests/bot/exts/moderation/test_silence.py
(from >5s to <2s for me), resulting in the overall test suite being about 1/3 faster.This definitely makes sense to look through commit by commit, as the commit descriptions explain each change.