| Commit message (Collapse) | Author | Age | Lines | ||
|---|---|---|---|---|---|
| ... | |||||
| | | | | | | * | | | | | Remove unnecessary if statement from send_private_embed test | 2020-06-25 | -2/+1 | ||
| | | | | | | | | | | | | |||||
| | | | | | | * | | | | | Reorder tests order to match with original file | 2020-06-24 | -65/+65 | ||
| | | | | | | | | | | | | |||||
| | | | | | | * | | | | | Move infraction description template back to main file, apply it there | 2020-06-24 | -11/+5 | ||
| | | | | | | | | | | | | |||||
| | | | | | | * | | | | | Fix test case key name in `test_notify_infraction` | 2020-06-24 | -1/+1 | ||
| | | | | | | | | | | | | |||||
| | | | | | | * | | | | | Add other parameters to `test_post_user` `not_user` mock | 2020-06-24 | -5/+5 | ||
| | | | | | | | | | | | | |||||
| | | | | | | * | | | | | Remove unnecessary `log.debug` assert in `test_post_user` | 2020-06-24 | -8/+1 | ||
| | | | | | | | | | | | | |||||
| | | | | | | * | | | | | Merge 2 if-else branches is `test_post_user` | 2020-06-24 | -5/+2 | ||
| | | | | | | | | | | | | |||||
| | | | | | | * | | | | | Replace `True` test with `In` test on `test_post_user` | 2020-06-24 | -1/+1 | ||
| | | | | | | | | | | | | |||||
| | | | | | | * | | | | | Sync keys, variable names and kwargs in `test_post_user` | 2020-06-24 | -12/+12 | ||
| | | | | | | | | | | | | |||||
| | | | | | | * | | | | | Remove case variable definitions in `test_notify_infraction` | 2020-06-24 | -10/+6 | ||
| | | | | | | | | | | | | |||||
| | | | | | | * | | | | | Mod Utils Tests: Remove unnecessary `user` from test name | 2020-06-24 | -1/+1 | ||
| | | | | | | | | | | | | |||||
| | | | | | | * | | | | | Mod Utils Tests: Change `True` assert to `In` assert for message check | 2020-06-24 | -2/+3 | ||
| | | | | | | | | | | | | |||||
| | | | | | | * | | | | | Mod Utils Tests: Move some test cases to `namedtuple` | 2020-06-24 | -66/+29 | ||
| | | | | | | | | | | | | |||||
| | | | | | | * | | | | | Mod Utils Tests: Move INFRACTION_DESCRIPTION_TEMPLATE to tests file | 2020-06-24 | -5/+11 | ||
| | | | | | | | | | | | | |||||
| | | | | | | * | | | | | Increase coverage of moderation utils tests | 2020-06-12 | -5/+36 | ||
| | | | | | | | | | | | | |||||
| | | | | | | * | | | | | Implement description shortening to infraction notify tests | 2020-06-12 | -8/+27 | ||
| | | | | | | | | | | | | |||||
| | | | | | | * | | | | | Remove deprecated avatar hash in `test_post_user` | 2020-06-12 | -3/+1 | ||
| | | | | | | | | | | | | |||||
| | | | | | | * | | | | | Merge branch 'master' into mod-utils-tests | 2020-06-11 | -95/+715 | ||
| | | | | | | |\ \ \ \ \ | |||||
| | | | | | | * | | | | | | Mod Utils Tests: Replace `has_active_infraction` with `get_active_infraction` | 2020-05-14 | -5/+5 | ||
| | | | | | | | | | | | | | |||||
| | | | | | | * | | | | | | Merge branch 'master' into mod-utils-tests | 2020-05-14 | -63/+586 | ||
| | | | | | | |\ \ \ \ \ \ | |||||
| | | | | | | * | | | | | | | (Mod Utils + Tests): Moved constants from tests to utils, applied change | 2020-03-13 | -26/+14 | ||
| | | | | | | | | | | | | | | |||||
| | | | | | | * | | | | | | | (Moderation Utils Tests): Removed Pardon Color constant. | 2020-03-13 | -3/+1 | ||
| | | | | | | | | | | | | | | |||||
| | | | | | | * | | | | | | | (Moderation Utils Tests): Removed Infraction Color constant. | 2020-03-13 | -5/+4 | ||
| | | | | | | | | | | | | | | |||||
| | | | | | | * | | | | | | | (Moderation Utils Tests): Fixed formatting in `notify_pardon` test. | 2020-03-13 | -1/+2 | ||
| | | | | | | | | | | | | | | |||||
| | | | | | | * | | | | | | | (Moderation Utils Tests): Moved `return_value` to `patch` decorator. | 2020-03-13 | -4/+2 | ||
| | | | | | | | | | | | | | | |||||
| | | | | | | * | | | | | | | (Moderation Utils Tests): Removed unnecessary mock resetting. | 2020-03-13 | -2/+0 | ||
| | | | | | | | | | | | | | | |||||
| | | | | | | * | | | | | | | (Moderation Utils Tests): Added 2 call check to `post_infraction` test. | 2020-03-13 | -2/+2 | ||
| | | | | | | | | | | | | | | |||||
| | | | | | | * | | | | | | | Revise docstrings for moderation util tests | 2020-03-12 | -10/+16 | ||
| | | | | | | | | | | | | | | |||||
| | | | | | | * | | | | | | | (Moderation Utils Tests): Removed `once` from `post_infraction` test due ↵ | 2020-03-12 | -1/+1 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tests failing. | ||||
| | | | | | | * | | | | | | | (Moderation Utils Tests): Added mock reset due fail. | 2020-03-12 | -0/+2 | ||
| | | | | | | | | | | | | | | |||||
| | | | | | | * | | | | | | | (Moderation Utils Tests): Added call check for `ctx.send` in `post_user` test. | 2020-03-12 | -0/+1 | ||
| | | | | | | | | | | | | | | |||||
| | | | | | | * | | | | | | | (Moderation Utils Tests): Move errors from booleans to actual errors in ↵ | 2020-03-12 | -7/+4 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `post_user` test. | ||||
| | | | | | | * | | | | | | | (Moderation Utils Tests): Hard-coded `self.ctx` argument to `post_user` ↵ | 2020-03-12 | -5/+5 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test, renamed current `args` to `user`, applied this in code. | ||||
| | | | | | | * | | | | | | | (Moderation Utils Tests): Fixed formatting in `notify_infraction` test. | 2020-03-12 | -3/+1 | ||
| | | | | | | | | | | | | | | |||||
| | | | | | | * | | | | | | | (Moderation Utils Tests): Removed unnecessary symbols from ↵ | 2020-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 ↵ | 2020-03-12 | -10/+10 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test cases listing, added icon to test cases in `notify_pardon` test | ||||
| | | | | | | * | | | | | | | (Moderation Utils Tests): Added params to variable in ↵ | 2020-03-12 | -5/+7 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `has_active_infraction` test. | ||||
| | | | | | | * | | | | | | | (Moderation Utils Tests): Create extra new tests set for `post_infraction` ↵ | 2020-03-12 | -103/+60 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | testing, removed old. | ||||
| | | | | | | * | | | | | | | (Moderation Utils Tests): Moved mock resetting to beginning of subtest in ↵ | 2020-03-08 | -4/+2 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `post_user` and `send_private_embed` test. | ||||
| | | | | | | * | | | | | | | (Moderation Utils Tests): Removed unnecessary `if` check from ↵ | 2020-03-08 | -2/+1 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `send_private_embed` test | ||||
| | | | | | | * | | | | | | | (Moderation Utils Tests): Hard-coded args for `send_private_embed` test. | 2020-03-08 | -10/+6 | ||
| | | | | | | | | | | | | | | |||||
| | | | | | | * | | | | | | | (Moderation Utils Tests): Added new check to `post_user` test (`ctx.send` ↵ | 2020-03-08 | -35/+16 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | content test), improved test cases. | ||||
| | | | | | | * | | | | | | | (Moderation Utils Tests): Moved `expected_output` from `Dict` to ↵ | 2020-03-08 | -15/+9 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `discord.Embed` in `notify_pardon` test. | ||||
| | | | | | | * | | | | | | | (Moderation Utils Tests): Removed unnecessary `ctx.send` `side_effect` from ↵ | 2020-03-08 | -11/+4 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `notify_pardon`, applied changes to test cases. | ||||
| | | | | | | * | | | | | | | (Moderation Utils Tests): Moved `notify_infraction` embed check from dict to ↵ | 2020-03-08 | -28/+43 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `Embed`. | ||||
| | | | | | | * | | | | | | | (Moderation Utils Tests): Removed unnecessary `ctx.send` mock resetting, ↵ | 2020-03-08 | -4/+1 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | moved `send_private_embed` mock reset to beginning of subtest. | ||||
| | | | | | | * | | | | | | | (Moderation Utils Tests): Removed unnecessary `ctx.send` `side_effect` and ↵ | 2020-03-08 | -12/+6 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | removed these in test cases too in `notify_infraction` test. | ||||
| | | | | | | * | | | | | | | (Moderation Utils Tests): Removed `Dict` unpacking in `notify_infraction` test. | 2020-03-08 | -20/+20 | ||
| | | | | | | | | | | | | | | |||||
| | | | | | | * | | | | | | | (Moderation Utils Tests): Cleaned up `has_active_infraction` test cases, ↵ | 2020-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 ↵ | 2020-03-08 | -13/+6 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `has_active_infraction` test. | ||||