aboutsummaryrefslogtreecommitdiffstats
path: root/tests (follow)
Commit message (Collapse)AuthorAgeLines
* Restore newlines for `notify_infraction` embed descriptionGravatar Karlis S2020-07-06-11/+11
| | | | Truncate reason instead full content to avoid removing newlines
* Remove unnecessary if statement from send_private_embed testGravatar ks1292020-06-25-2/+1
|
* Reorder tests order to match with original fileGravatar ks1292020-06-24-65/+65
|
* Move infraction description template back to main file, apply it thereGravatar ks1292020-06-24-11/+5
|
* Fix test case key name in `test_notify_infraction`Gravatar ks1292020-06-24-1/+1
|
* Add other parameters to `test_post_user` `not_user` mockGravatar ks1292020-06-24-5/+5
|
* Remove unnecessary `log.debug` assert in `test_post_user`Gravatar ks1292020-06-24-8/+1
|
* Merge 2 if-else branches is `test_post_user`Gravatar ks1292020-06-24-5/+2
|
* Replace `True` test with `In` test on `test_post_user`Gravatar ks1292020-06-24-1/+1
|
* 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
|\
| * Merge branch 'master' into bug/backend/906/converter-year-rangeGravatar Joseph Banks2020-06-10-47/+824
| |\
| | * Merge branch 'master' into staff_count_serverGravatar kwzrd2020-06-05-5/+0
| | |\
| | | * Merge branch 'master' into stop_sending_avatar_hashGravatar Leon Sandøy2020-05-31-31/+638
| | | |\
| | | * | Fix failing tests related to avatar_hashGravatar Leon Sandøy2020-05-27-5/+0
| | | | |
| | * | | Merge branch 'master' into staff_count_serverGravatar Leon Sandøy2020-05-31-0/+247
| | |\ \ \ | | | | |/ | | | |/|
| | | * | Merge branch 'master' into ban-kick-reason-lengthGravatar Mark2020-05-30-31/+550
| | | |\ \
| | | | * \ Merge branch 'master' into test_antimalwareGravatar Sebastiaan Zeeff2020-05-30-35/+398
| | | | |\ \
| | | | * | | AntiMalware tests - Switched from monkeypatch to unittest.patchGravatar Jannes Jonkers2020-05-25-2/+2
| | | | | | |
| | | | * | | AntiMalware Refactor - Moved embed descriptions into constants, added tests ↵Gravatar Jannes Jonkers2020-05-11-18/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | for embed descriptions
| | | | * | | AntiMalware Tests - Removed exact log content checksGravatar Jannes Jonkers2020-05-11-19/+2
| | | | | | |
| | | | * | | AntiMalware Tests - added a missing case for no extensions in ↵Gravatar Jannes Jonkers2020-05-11-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | test_get_disallowed_extensions
| | | | * | | AntiMalware Tests - extracted the method for determining disallowed ↵Gravatar Jannes Jonkers2020-05-11-6/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | extensions and added a test for it.
| | | | * | | AntiMalware Tests - implemented minor feedbackGravatar Jannes Jonkers2020-05-11-12/+12
| | | | | | |
| | | | * | | Update tests/bot/cogs/test_antimalware.pyGravatar MrGrote2020-05-08-1/+1
| | | | | | | | | | | | | | | | | | | | | Co-authored-by: Mark <[email protected]>
| | | | * | | AntiMalware Tests - Switched to unittest.IsolatedAsyncioTestCaseGravatar Jannes Jonkers2020-05-07-29/+19
| | | | | | |
| | | | * | | AntiMalware Tests - Added unittest for txt file attachmentGravatar Jannes Jonkers2020-05-07-2/+23
| | | | | | |
| | | | * | | AntiMalware Tests - Added unittest for valid attachmentGravatar Jannes Jonkers2020-05-07-0/+9
| | | | | | |
| | | | * | | AntiMalware Tests - Added unittest message deletion logGravatar Jannes Jonkers2020-05-07-4/+28
| | | | | | |
| | | | * | | AntiMalware Tests - Added unittest for cog setupGravatar Jannes Jonkers2020-05-07-0/+10
| | | | | | |
| | | | * | | AntiMalware Tests - Added unittest for messages that were deleted in the ↵Gravatar Jannes Jonkers2020-05-07-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | meantime.
| | | | * | | AntiMalware Tests - Added unittest for the embed for a python file.Gravatar Jannes Jonkers2020-05-07-1/+24
| | | | | | |
| | | | * | | AntiMalware Tests - Added unittest for messages send by staffGravatar Jannes Jonkers2020-05-07-1/+12
| | | | | | |
| | | | * | | AntiMalware Tests - Added unittests for deletion of message and ignoring of dmsGravatar Jannes Jonkers2020-05-07-1/+21
| | | | | | |
| | | | * | | AntiMalware Tests - Added unittest for message without attachmentGravatar Jannes Jonkers2020-05-07-0/+20
| | | | | | |
| | | * | | | Infr. Tests: Add `apply_infraction` awaiting assertion with argsGravatar ks1292020-05-30-0/+6
| | | | | | |
| | | * | | | Simplify infraction reason truncation testsGravatar ks1292020-05-30-13/+7
| | | | | | |
| | | * | | | Infr Tests: Make `get_active_infraction` return `None`Gravatar ks1292020-05-20-1/+1
| | | | | | |
| | | * | | | Infr. Test: Replace `get_active_mock` return valueGravatar ks1292020-05-20-1/+1
| | | | | | | | | | | | | | | | | | | | | Replace `{"foo": "bar"}` with `{"id": 1}`
| | | * | | | Infr. Tests: Replace `str` with `dict`Gravatar ks1292020-05-20-1/+1
| | | | | | | | | | | | | | | | | | | | | To allow `.get`, I had to replace `str` return value with `dict`
| | | * | | | Infr. Tests: Add more content to await commentGravatar ks1292020-05-20-2/+2
| | | | | | |
| | | * | | | ModLog Tests: Fix embed description truncate testGravatar ks1292020-05-20-1/+1
| | | | | | |