aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_base.py
diff options
context:
space:
mode:
authorGravatar Sebastiaan Zeeff <[email protected]>2019-10-28 15:54:31 +0100
committerGravatar Sebastiaan Zeeff <[email protected]>2019-10-31 22:20:20 +0100
commit6e57f41d727c9cde51d36adc04393c3723d62472 (patch)
tree77c67226b01ac3e16a866f50b20b7b46333436f8 /tests/test_base.py
parentMerge pull request #629 from python-discord/unittest-helpers-proper-child-mock (diff)
Enhance the output of the user command
https://github.com/python-discord/bot/issues/628 https://github.com/python-discord/bot/issues/339 This commit introduces several changes to the output of the `!user` command for moderation staff. The output for regular users has not changed. Changes: - When issued in a moderation channel, the infraction count of the user will now be broken down by type as described in #339. This allows moderators to get a quicker overview of someone's history by providing more information. The command will display the total number of infractions per type, with the number of active infractions in parentheses behind it if there are any. This change also means that there no longer a need for the `hidden` parameter: When issued in a moderation channel, hidden infractions are included by default; when issued outside of a mod channel, the command will be equal to what a regular user would get. In addition to broken-down infraction info, the command now also shows information about the nominations of a user when it's issued inside of a moderation channel. - The code has been refactored to smaller units that take care of a single action to make unit testing easier. I have included tests that cover the command and all of the new helper methods. Tests for the other methods/commands in the cog will be added in the specific issue calling for tests for this cog (#581) This commit closes #628 and closes #339
Diffstat (limited to 'tests/test_base.py')
0 files changed, 0 insertions, 0 deletions