aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
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