| Commit message (Collapse) | Author | Age | Lines | ||
|---|---|---|---|---|---|
| ... | |||||
| | | * | | | | | | | | | Fix test for token remover ignoring bot messages | 2020-05-11 | -4/+9 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's not possible to test this via asserting the return value of `on_message` since it never returns anything. Instead, the actual relevant unit, `find_token_in_message,` should be tested. | ||||
| | | * | | | | | | | | | Allow using arbitrary parameter names with the autospec decorator | 2020-05-11 | -2/+15 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This gives the caller more flexibility. Sometimes attribute names are too long or they don't follow a naming scheme accepted by the linter. | ||||
| | | * | | | | | | | | | Test token remover skips messages without tokens | 2020-05-11 | -0/+11 | ||
| | | | | | | | | | | | | |||||
| | | * | | | | | | | | | Test token remover takes action if a token is found | 2020-05-11 | -1/+13 | ||
| | | | | | | | | | | | | |||||
| | | * | | | | | | | | | Add a test helper function to patch multiple attributes with autospecs | 2020-05-11 | -0/+9 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This helper reduces redundancy/boilerplate by setting default values. It also has the consequence of shortening the length of the invocation, which makes it faster to use and easier to read. | ||||
| | | * | | | | | | | | | Test on_message_edit of token remover uses on_message | 2020-05-11 | -2/+10 | ||
| | | | |_|_|/ / / / / | | |/| | | | | | | | |||||
| | * | | | | | | | | | Merge pull request #978 from ItsDrike/unsilence-scheduler | 2020-06-12 | -4/+14 | ||
| | |\ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|_|_|/ | |/| | | | | | | | | Use Scheduler instead of asyncio.sleep on silence cog | ||||
| | | * | | | | | | | | Test for channel not silenced message | 2020-06-06 | -4/+14 | ||
| | | | |_|/ / / / / | | |/| | | | | | | |||||
| | * | | | | | | | | Merge branch 'master' into bad-words-nick | 2020-06-11 | -60/+317 | ||
| | |\ \ \ \ \ \ \ \ | | | |_|_|_|_|_|/ | | |/| | | | | | | |||||
| | | * | | | | | | | Merge branch 'master' into bug/backend/906/converter-year-range | 2020-06-10 | -47/+824 | ||
| | | |\ \ \ \ \ \ \ | | | | |_|_|/ / / | | | |/| | | | | | |||||
| | | | * | | | | | | Merge branch 'master' into staff_count_server | 2020-06-05 | -5/+0 | ||
| | | | |\ \ \ \ \ \ | | | | | |_|/ / / | | | | |/| | | | | |||||
| | | | | * | | | | | Merge branch 'master' into stop_sending_avatar_hash | 2020-05-31 | -31/+638 | ||
| | | | | |\| | | | | |||||
| | | | | * | | | | | Fix failing tests related to avatar_hash | 2020-05-27 | -5/+0 | ||
| | | | | | | | | | | |||||
| | | | * | | | | | | Merge branch 'master' into staff_count_server | 2020-05-31 | -0/+247 | ||
| | | | |\ \ \ \ \ \ | | | | | |/ / / / | | | | |/| | | | | |||||
| | | | | * | | | | | Merge branch 'master' into ban-kick-reason-length | 2020-05-30 | -31/+550 | ||
| | | | | |\ \ \ \ \ | |||||
| | | | | | * \ \ \ \ | Merge branch 'master' into test_antimalware | 2020-05-30 | -35/+398 | ||
| | | | | | |\ \ \ \ \ | |||||
| | | | | | * | | | | | | AntiMalware tests - Switched from monkeypatch to unittest.patch | 2020-05-25 | -2/+2 | ||
| | | | | | | | | | | | | |||||
| | | | | | * | | | | | | AntiMalware Refactor - Moved embed descriptions into constants, added tests ↵ | 2020-05-11 | -18/+30 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for embed descriptions | ||||
| | | | | | * | | | | | | AntiMalware Tests - Removed exact log content checks | 2020-05-11 | -19/+2 | ||
| | | | | | | | | | | | | |||||
| | | | | | * | | | | | | AntiMalware Tests - added a missing case for no extensions in ↵ | 2020-05-11 | -0/+1 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test_get_disallowed_extensions | ||||
| | | | | | * | | | | | | AntiMalware Tests - extracted the method for determining disallowed ↵ | 2020-05-11 | -6/+23 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | extensions and added a test for it. | ||||
| | | | | | * | | | | | | AntiMalware Tests - implemented minor feedback | 2020-05-11 | -12/+12 | ||
| | | | | | | | | | | | | |||||
| | | | | | * | | | | | | Update tests/bot/cogs/test_antimalware.py | 2020-05-08 | -1/+1 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Mark <[email protected]> | ||||
| | | | | | * | | | | | | AntiMalware Tests - Switched to unittest.IsolatedAsyncioTestCase | 2020-05-07 | -29/+19 | ||
| | | | | | | | | | | | | |||||
| | | | | | * | | | | | | AntiMalware Tests - Added unittest for txt file attachment | 2020-05-07 | -2/+23 | ||
| | | | | | | | | | | | | |||||
| | | | | | * | | | | | | AntiMalware Tests - Added unittest for valid attachment | 2020-05-07 | -0/+9 | ||
| | | | | | | | | | | | | |||||
| | | | | | * | | | | | | AntiMalware Tests - Added unittest message deletion log | 2020-05-07 | -4/+28 | ||
| | | | | | | | | | | | | |||||
| | | | | | * | | | | | | AntiMalware Tests - Added unittest for cog setup | 2020-05-07 | -0/+10 | ||
| | | | | | | | | | | | | |||||
| | | | | | * | | | | | | AntiMalware Tests - Added unittest for messages that were deleted in the ↵ | 2020-05-07 | -1/+19 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | meantime. | ||||
| | | | | | * | | | | | | AntiMalware Tests - Added unittest for the embed for a python file. | 2020-05-07 | -1/+24 | ||
| | | | | | | | | | | | | |||||
| | | | | | * | | | | | | AntiMalware Tests - Added unittest for messages send by staff | 2020-05-07 | -1/+12 | ||
| | | | | | | | | | | | | |||||
| | | | | | * | | | | | | AntiMalware Tests - Added unittests for deletion of message and ignoring of dms | 2020-05-07 | -1/+21 | ||
| | | | | | | | | | | | | |||||
| | | | | | * | | | | | | AntiMalware Tests - Added unittest for message without attachment | 2020-05-07 | -0/+20 | ||
| | | | | | | |_|/ / / | | | | | |/| | | | | |||||
| | | | | * | | | | | | Infr. Tests: Add `apply_infraction` awaiting assertion with args | 2020-05-30 | -0/+6 | ||
| | | | | | | | | | | | |||||
| | | | | * | | | | | | Simplify infraction reason truncation tests | 2020-05-30 | -13/+7 | ||
| | | | | | | | | | | | |||||
| | | | | * | | | | | | Infr Tests: Make `get_active_infraction` return `None` | 2020-05-20 | -1/+1 | ||
| | | | | | | | | | | | |||||
| | | | | * | | | | | | Infr. Test: Replace `get_active_mock` return value | 2020-05-20 | -1/+1 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace `{"foo": "bar"}` with `{"id": 1}` | ||||
| | | | | * | | | | | | Infr. Tests: Replace `str` with `dict` | 2020-05-20 | -1/+1 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To allow `.get`, I had to replace `str` return value with `dict` | ||||
| | | | | * | | | | | | Infr. Tests: Add more content to await comment | 2020-05-20 | -2/+2 | ||
| | | | | | | | | | | | |||||
| | | | | * | | | | | | ModLog Tests: Fix embed description truncate test | 2020-05-20 | -1/+1 | ||
| | | | | | | | | | | | |||||
| | | | | * | | | | | | Merge branch 'master' into ban-kick-reason-length | 2020-05-20 | -11/+183 | ||
| | | | | |\ \ \ \ \ \ | | | | | | |_|/ / / | | | | | |/| | | | | |||||
| | | | | * | | | | | | Infraction Tests: Small fixes | 2020-05-20 | -4/+4 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Remove unnecessary space from placeholder - Rename `has_active_infraction` to `get_active_infraction` | ||||
| | | | | * | | | | | | ModLog Tests: Fix truncation tests docstring | 2020-05-20 | -1/+1 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Leon Sandøy <[email protected]> | ||||
| | | | | * | | | | | | (Infractions and ModLog Tests): Replaced `shortening` with `truncation`, ↵ | 2020-04-16 | -5/+6 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | removed unnecessary type hint and added comment to kick truncation test about awaiting `kick`. | ||||
| | | | | * | | | | | | (ModLog Tests): Created reason shortening tests for `send_log_message`. | 2020-04-16 | -0/+29 | ||
| | | | | | | | | | | | |||||
| | | | | * | | | | | | (Infraction Tests): Created reason shortening tests for ban and kick. | 2020-04-16 | -0/+54 | ||
| | | | | | | | | | | | |||||
| | | | | * | | | | | | (Test Helpers): Added `__ge__` function to `MockRole` for comparing. | 2020-04-15 | -0/+4 | ||
| | | | | | |_|_|/ / | | | | |/| | | | | |||||
| | | | * | | | | | | Fix busted test_information test. | 2020-05-30 | -4/+8 | ||
| | | | | |_|_|/ / | | | |/| | | | | | | | | | | | | | | | | | | | | I wish this test didn't exist. | ||||
| | | * | | | | | | Fix exception message assertions in converter tests | 2020-04-28 | -7/+8 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `msg` arg is for displaying a message when the assertion fails. To match against the exception's message, `assertRaisesRegex` must be used. Since all of the messages are meant to be interpreted literally rather than as regex, `re.escape` is used. | ||||
| | | * | | | | | | Use await instead of asyncio.run in converter tests | 2020-04-28 | -28/+27 | ||
| | | | | | | | | | |||||
