aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2020-03-13(Moderation Utils Tests): Fixed formatting in `notify_pardon` test.Gravatar Karlis S-1/+2
2020-03-13(Moderation Utils Tests): Moved `return_value` to `patch` decorator.Gravatar Karlis S-4/+2
2020-03-13(Moderation Utils Tests): Removed unnecessary mock resetting.Gravatar Karlis S-2/+0
2020-03-13(Moderation Utils Tests): Added 2 call check to `post_infraction` test.Gravatar Karlis S-2/+2
2020-03-12Revise docstrings for moderation util testsGravatar MarkKoz-10/+16
2020-03-12(Moderation Utils Tests): Removed `once` from `post_infraction` test due ↵Gravatar Karlis S-1/+1
tests failing.
2020-03-12(Moderation Utils Tests): Added mock reset due fail.Gravatar ks123-0/+2
2020-03-12(Moderation Utils Tests): Added call check for `ctx.send` in `post_user` test.Gravatar ks123-0/+1
2020-03-12(Moderation Utils Tests): Move errors from booleans to actual errors in ↵Gravatar ks123-7/+4
`post_user` test.
2020-03-12(Moderation Utils Tests): Hard-coded `self.ctx` argument to `post_user` ↵Gravatar ks123-5/+5
test, renamed current `args` to `user`, applied this in code.
2020-03-12(Moderation Utils Tests): Fixed formatting in `notify_infraction` test.Gravatar ks123-3/+1
2020-03-12(Moderation Utils Tests): Removed unnecessary symbols from ↵Gravatar ks123-2/+2
`has_active_infraction` test `infraction_nr` variable and changes this to more unique number.
2020-03-12(Moderation Utils Tests): Moved embed generating to test cases loop from ↵Gravatar ks123-10/+10
test cases listing, added icon to test cases in `notify_pardon` test
2020-03-12(Moderation Utils Tests): Added params to variable in ↵Gravatar ks123-5/+7
`has_active_infraction` test.
2020-03-12(Moderation Utils Tests): Create extra new tests set for `post_infraction` ↵Gravatar ks123-103/+60
testing, removed old.
2020-03-08(Moderation Utils Tests): Moved mock resetting to beginning of subtest in ↵Gravatar ks123-4/+2
`post_user` and `send_private_embed` test.
2020-03-08(Moderation Utils Tests): Removed unnecessary `if` check from ↵Gravatar ks123-2/+1
`send_private_embed` test
2020-03-08(Moderation Utils Tests): Hard-coded args for `send_private_embed` test.Gravatar ks123-10/+6
2020-03-08(Moderation Utils Tests): Added new check to `post_user` test (`ctx.send` ↵Gravatar ks123-35/+16
content test), improved test cases.
2020-03-08(Moderation Utils Tests): Moved `expected_output` from `Dict` to ↵Gravatar ks123-15/+9
`discord.Embed` in `notify_pardon` test.
2020-03-08(Moderation Utils Tests): Removed unnecessary `ctx.send` `side_effect` from ↵Gravatar ks123-11/+4
`notify_pardon`, applied changes to test cases.
2020-03-08(Moderation Utils Tests): Moved `notify_infraction` embed check from dict to ↵Gravatar ks123-28/+43
`Embed`.
2020-03-08(Moderation Utils Tests): Removed unnecessary `ctx.send` mock resetting, ↵Gravatar ks123-4/+1
moved `send_private_embed` mock reset to beginning of subtest.
2020-03-08(Moderation Utils Tests): Removed unnecessary `ctx.send` `side_effect` and ↵Gravatar ks123-12/+6
removed these in test cases too in `notify_infraction` test.
2020-03-08(Moderation Utils Tests): Removed `Dict` unpacking in `notify_infraction` test.Gravatar ks123-20/+20
2020-03-08(Moderation Utils Tests): Cleaned up `has_active_infraction` test cases, ↵Gravatar ks123-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.
2020-03-08(Moderation Utils Tests): Hard-coded API get request params for ↵Gravatar ks123-13/+6
`has_active_infraction` test.
2020-03-08(Moderation Utils Tests): Removed large `utils` parts import, use import ↵Gravatar ks123-12/+10
`utils` instead and added `utils` before variables and function that was imported directly before.
2020-03-08(Moderation Utils Tests): Fixed docstrings, added more information to these.Gravatar ks123-6/+8
2020-03-05(Moderation Utils Tests): Fixed errors, added checks before assertions for ↵Gravatar ks123-1/+4
errors
2020-03-05(Moderation Utils Tests): Added additional assertions to `post_infraction` test.Gravatar ks123-8/+54
2020-03-05(Moderation Utils Tests): Added `user.send` call assertion to ↵Gravatar ks123-0/+2
`test_send_private_embed`.
2020-03-05(Moderation Utils Tests): Added API POST call assertion to `test_post_user`.Gravatar ks123-5/+24
2020-03-05(Moderation Utils Tests): Added new assertions to `notify_pardon`, added ↵Gravatar ks123-6/+24
`ctx.send` raising errors, added check for return values and `send_private_embed` call.
2020-03-05(Moderation Utils Tests): Added new assertions to `post_infraction`, added ↵Gravatar ks123-11/+33
`ctx.send` raising errors, added check for return values and `send_private_embed` call.
2020-03-05(Moderation Utils Tests): Added following new assertions to ↵Gravatar ks123-3/+27
`has_active_infraction` tests: `ctx.send` and `bot.api_client.get` calling.
2020-03-05(Moderation Utils Tests): Use `bot.cogs.moderation.utils`'s `RULES_URL` ↵Gravatar ks123-2/+1
instead creating new one
2020-03-05(Moderation Utils Tests): Removed unnecessary `AsyncMock()` from `__init__` ↵Gravatar ks123-1/+0
(`self.bot.api_client.get`)
2020-03-05(Moderation Utils Tests): Moved `has_active_infraction` tests to one test.Gravatar ks123-22/+35
2020-03-05(Moderation Utils Tests): `send_private_embed` moved exception creating from ↵Gravatar ks123-4/+6
cases testing to test cases listing, added side_effect resetting.
2020-03-05(Moderation Utils Tests): Created tests for `post_infraction` function, ↵Gravatar ks123-1/+68
created __init__.py for moderation tests
2020-03-04(Moderation Utils Tests): Created tests for `send_private_embed` function + ↵Gravatar ks123-3/+44
Fixed errors.
2020-03-04(Moderation Utils Tests): Created tests for `post_user` function.Gravatar ks123-1/+59
2020-03-04(Moderation Utils Tests): Created tests for `notify_pardon` function.Gravatar ks123-2/+39
2020-03-04(Moderation Utils Tests): Created tests for `notify_infraction` function.Gravatar ks123-2/+91
2020-03-03(Moderation Utils Tests): Created tests for `has_active_infraction` functionGravatar ks123-0/+24
2020-03-03(Moderation Utils Tests): Added imports, modified tests class instance and ↵Gravatar ks123-5/+7
created new params for tests class