aboutsummaryrefslogtreecommitdiffstats
path: root/tests (follow)
Commit message (Collapse)AuthorAgeLines
...
| | | | | | * | | | | | Sync keys, variable names and kwargs in `test_post_user`Gravatar ks1292020-06-24-12/+12
| | | | | | | | | | | |
| | | | | | * | | | | | Remove case variable definitions in `test_notify_infraction`Gravatar ks1292020-06-24-10/+6
| | | | | | | | | | | |
| | | | | | * | | | | | Mod Utils Tests: Remove unnecessary `user` from test nameGravatar ks1292020-06-24-1/+1
| | | | | | | | | | | |
| | | | | | * | | | | | Mod Utils Tests: Change `True` assert to `In` assert for message checkGravatar ks1292020-06-24-2/+3
| | | | | | | | | | | |
| | | | | | * | | | | | Mod Utils Tests: Move some test cases to `namedtuple`Gravatar ks1292020-06-24-66/+29
| | | | | | | | | | | |
| | | | | | * | | | | | Mod Utils Tests: Move INFRACTION_DESCRIPTION_TEMPLATE to tests fileGravatar ks1292020-06-24-5/+11
| | | | | | | | | | | |
| | | | | | * | | | | | Increase coverage of moderation utils testsGravatar ks1292020-06-12-5/+36
| | | | | | | | | | | |
| | | | | | * | | | | | Implement description shortening to infraction notify testsGravatar ks1292020-06-12-8/+27
| | | | | | | | | | | |
| | | | | | * | | | | | Remove deprecated avatar hash in `test_post_user`Gravatar ks1292020-06-12-3/+1
| | | | | | | | | | | |
| | | | | | * | | | | | Merge branch 'master' into mod-utils-testsGravatar ks1292020-06-11-95/+715
| | | | | | |\ \ \ \ \ \
| | | | | | * | | | | | | Mod Utils Tests: Replace `has_active_infraction` with `get_active_infraction`Gravatar ks1292020-05-14-5/+5
| | | | | | | | | | | | |
| | | | | | * | | | | | | Merge branch 'master' into mod-utils-testsGravatar ks1292020-05-14-63/+586
| | | | | | |\ \ \ \ \ \ \
| | | | | | * | | | | | | | (Mod Utils + Tests): Moved constants from tests to utils, applied changeGravatar Karlis S2020-03-13-26/+14
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | (Moderation Utils Tests): Removed Pardon Color constant.Gravatar Karlis S2020-03-13-3/+1
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | (Moderation Utils Tests): Removed Infraction Color constant.Gravatar Karlis S2020-03-13-5/+4
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | (Moderation Utils Tests): Fixed formatting in `notify_pardon` test.Gravatar Karlis S2020-03-13-1/+2
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | (Moderation Utils Tests): Moved `return_value` to `patch` decorator.Gravatar Karlis S2020-03-13-4/+2
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | (Moderation Utils Tests): Removed unnecessary mock resetting.Gravatar Karlis S2020-03-13-2/+0
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | (Moderation Utils Tests): Added 2 call check to `post_infraction` test.Gravatar Karlis S2020-03-13-2/+2
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | Revise docstrings for moderation util testsGravatar MarkKoz2020-03-12-10/+16
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | (Moderation Utils Tests): Removed `once` from `post_infraction` test due ↵Gravatar Karlis S2020-03-12-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tests failing.
| | | | | | * | | | | | | | (Moderation Utils Tests): Added mock reset due fail.Gravatar ks1232020-03-12-0/+2
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | (Moderation Utils Tests): Added call check for `ctx.send` in `post_user` test.Gravatar ks1232020-03-12-0/+1
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | (Moderation Utils Tests): Move errors from booleans to actual errors in ↵Gravatar ks1232020-03-12-7/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `post_user` test.
| | | | | | * | | | | | | | (Moderation Utils Tests): Hard-coded `self.ctx` argument to `post_user` ↵Gravatar ks1232020-03-12-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test, renamed current `args` to `user`, applied this in code.
| | | | | | * | | | | | | | (Moderation Utils Tests): Fixed formatting in `notify_infraction` test.Gravatar ks1232020-03-12-3/+1
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | (Moderation Utils Tests): Removed unnecessary symbols from ↵Gravatar ks1232020-03-12-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `has_active_infraction` test `infraction_nr` variable and changes this to more unique number.
| | | | | | * | | | | | | | (Moderation Utils Tests): Moved embed generating to test cases loop from ↵Gravatar ks1232020-03-12-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test cases listing, added icon to test cases in `notify_pardon` test
| | | | | | * | | | | | | | (Moderation Utils Tests): Added params to variable in ↵Gravatar ks1232020-03-12-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `has_active_infraction` test.
| | | | | | * | | | | | | | (Moderation Utils Tests): Create extra new tests set for `post_infraction` ↵Gravatar ks1232020-03-12-103/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | testing, removed old.
| | | | | | * | | | | | | | (Moderation Utils Tests): Moved mock resetting to beginning of subtest in ↵Gravatar ks1232020-03-08-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `post_user` and `send_private_embed` test.
| | | | | | * | | | | | | | (Moderation Utils Tests): Removed unnecessary `if` check from ↵Gravatar ks1232020-03-08-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `send_private_embed` test
| | | | | | * | | | | | | | (Moderation Utils Tests): Hard-coded args for `send_private_embed` test.Gravatar ks1232020-03-08-10/+6
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | (Moderation Utils Tests): Added new check to `post_user` test (`ctx.send` ↵Gravatar ks1232020-03-08-35/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | content test), improved test cases.
| | | | | | * | | | | | | | (Moderation Utils Tests): Moved `expected_output` from `Dict` to ↵Gravatar ks1232020-03-08-15/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `discord.Embed` in `notify_pardon` test.
| | | | | | * | | | | | | | (Moderation Utils Tests): Removed unnecessary `ctx.send` `side_effect` from ↵Gravatar ks1232020-03-08-11/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `notify_pardon`, applied changes to test cases.
| | | | | | * | | | | | | | (Moderation Utils Tests): Moved `notify_infraction` embed check from dict to ↵Gravatar ks1232020-03-08-28/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `Embed`.
| | | | | | * | | | | | | | (Moderation Utils Tests): Removed unnecessary `ctx.send` mock resetting, ↵Gravatar ks1232020-03-08-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | moved `send_private_embed` mock reset to beginning of subtest.
| | | | | | * | | | | | | | (Moderation Utils Tests): Removed unnecessary `ctx.send` `side_effect` and ↵Gravatar ks1232020-03-08-12/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | removed these in test cases too in `notify_infraction` test.
| | | | | | * | | | | | | | (Moderation Utils Tests): Removed `Dict` unpacking in `notify_infraction` test.Gravatar ks1232020-03-08-20/+20
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | (Moderation Utils Tests): Cleaned up `has_active_infraction` test cases, ↵Gravatar ks1232020-03-08-30/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | hard-coded args, moved mocks resetting to beginning of subtest, added `ctx.send` check only is infraction nr and type in sent string.
| | | | | | * | | | | | | | (Moderation Utils Tests): Hard-coded API get request params for ↵Gravatar ks1232020-03-08-13/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `has_active_infraction` test.
| | | | | | * | | | | | | | (Moderation Utils Tests): Removed large `utils` parts import, use import ↵Gravatar ks1232020-03-08-12/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `utils` instead and added `utils` before variables and function that was imported directly before.
| | | | | | * | | | | | | | (Moderation Utils Tests): Fixed docstrings, added more information to these.Gravatar ks1232020-03-08-6/+8
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | (Moderation Utils Tests): Fixed errors, added checks before assertions for ↵Gravatar ks1232020-03-05-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | errors
| | | | | | * | | | | | | | (Moderation Utils Tests): Added additional assertions to `post_infraction` test.Gravatar ks1232020-03-05-8/+54
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | (Moderation Utils Tests): Added `user.send` call assertion to ↵Gravatar ks1232020-03-05-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `test_send_private_embed`.
| | | | | | * | | | | | | | (Moderation Utils Tests): Added API POST call assertion to `test_post_user`.Gravatar ks1232020-03-05-5/+24
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | (Moderation Utils Tests): Added new assertions to `notify_pardon`, added ↵Gravatar ks1232020-03-05-6/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `ctx.send` raising errors, added check for return values and `send_private_embed` call.
| | | | | | * | | | | | | | (Moderation Utils Tests): Added new assertions to `post_infraction`, added ↵Gravatar ks1232020-03-05-11/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `ctx.send` raising errors, added check for return values and `send_private_embed` call.