| Commit message (Collapse) | Author | Age | Lines | ||
|---|---|---|---|---|---|
| ... | |||||
| | * | | | | | | Jam Tests: Create test for team voice channel creating | 2020-06-11 | -0/+12 | ||
| | | | | | | | | |||||
| | * | | | | | | Jam Tests: Make text channel creation test more specific | 2020-06-11 | -1/+8 | ||
| | | | | | | | | |||||
| | * | | | | | | Jam Tests: Created test for channel overwrites | 2020-06-11 | -0/+24 | ||
| | | | | | | | | |||||
| | * | | | | | | Jam Tests: Created test for creating text channel for team | 2020-06-11 | -0/+5 | ||
| | | | | | | | | |||||
| | * | | | | | | Jam Tests: Created test that make sure when category exist, don't create | 2020-06-11 | -0/+8 | ||
| | | | | | | | | |||||
| | * | | | | | | Jam Tests: Added utils.get assert to category creating test | 2020-06-11 | -0/+1 | ||
| | | | | | | | | |||||
| | * | | | | | | Jam Tests: Created test for category creating when not exist | 2020-06-11 | -2/+14 | ||
| | | | | | | | | |||||
| | * | | | | | | Jam Tests: Created tests for removing duplicate team members | 2020-06-11 | -0/+9 | ||
| | | | | | | | | |||||
| | * | | | | | | Jam Tests: Created tests for case when too small amount of members given | 2020-06-11 | -1/+17 | ||
| | | | | | | | | |||||
| | * | | | | | | Jam Tests: Created base test layout | 2020-06-11 | -0/+14 | ||
| | | | | | | | | |||||
| * | | | | | | | Fix broken antimalware tests. | 2020-07-29 | -1/+1 | ||
| | | | | | | | | |||||
| * | | | | | | | Restructure bot.filter_list_cache. | 2020-07-29 | -5/+5 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an optimization designed to eliminate all the list comprehensions we were doing inside antimalware and filtering. The cache is now structured so that the content is the key and the metadata is the value. | ||||
| * | | | | | | | Rename AllowDenyList to FilterLists | 2020-07-27 | -1/+1 | ||
| | | | | | | | | |||||
| * | | | | | | | Remove AntiMalWare constants, use cache data. | 2020-07-18 | -9/+15 | ||
| | |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | Also updates the tests for this cog. | ||||
| * | | | | | | Merge branch 'master' into dm_relay | 2020-07-15 | -0/+12 | ||
| |\ \ \ \ \ \ | |||||
| | * | | | | | | edit snekbox tests to work with filtering | 2020-07-13 | -0/+12 | ||
| | | |_|_|_|/ | |/| | | | | |||||
| * / | | | | | Fix DuckPond tests now that send_webhook is gone. | 2020-07-12 | -39/+12 | ||
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some of the tests were failing because they were expecting send_webhook to be a method of the DuckPond cog, other tests simply were no longer applicable, and have been removed. https://github.com/python-discord/bot/issues/667 | ||||
| * | | | | | Fix imports in slowmode tests | 2020-07-06 | -3/+3 | ||
| | | | | | | |||||
| * | | | | | Improve set_slowmode tests by checking whether the channel was edited | 2020-07-06 | -8/+22 | ||
| | | | | | | |||||
| * | | | | | Add multiple test cases for set_slowmode tests | 2020-07-06 | -10/+34 | ||
| | | | | | | |||||
| * | | | | | Use local text_channel instead of instance attribute | 2020-07-06 | -13/+10 | ||
| | | | | | | |||||
| * | | | | | Add tests for set_slowmode | 2020-07-06 | -0/+20 | ||
| | | | | | | |||||
| * | | | | | Add tests for reset_slowmode | 2020-07-06 | -3/+22 | ||
| | | | | | | |||||
| * | | | | | Add tests for cog_check and get_slowmode | 2020-07-06 | -0/+37 | ||
| | | | | | | |||||
| * | | | | | Merge branch 'master' into issue926-paginate-long-lines | 2020-06-26 | -191/+514 | ||
| |\ \ \ \ \ | |||||
| | * \ \ \ \ | Merge branch 'master' into bug/backend/bot-50/sync-ignore-guilds | 2020-06-22 | -10/+85 | ||
| | |\ \ \ \ \ | |||||
| | | * \ \ \ \ | Merge branch 'master' into logging-tests | 2020-06-22 | -200/+1047 | ||
| | | |\ \ \ \ \ | | | | |_|_|/ | | | |/| | | | |||||
| | | | * | | | | Merge branch 'master' into bug/mod/bot-2a/webhook-clyde | 2020-06-20 | -10/+26 | ||
| | | | |\ \ \ \ | |||||
| | | | | * \ \ \ | Merge branch 'master' into bug/filters/bot-58/removers-ignore-dms | 2020-06-19 | -1/+3 | ||
| | | | | |\ \ \ \ | | | | | | |_|/ | | | | | |/| | | |||||
| | | | | | * | | | Merge branch 'master' into help_channel_rediscache | 2020-06-16 | -167/+361 | ||
| | | | | | |\ \ \ | |||||
| | | | | | * \ \ \ | Merge branch 'master' into help_channel_rediscache | 2020-06-06 | -9/+8 | ||
| | | | | | |\ \ \ \ | |||||
| | | | | | * | | | | | Add support for bool values in RedisCache | 2020-05-31 | -1/+3 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We're gonna need this for the help channel handling, and it seems like a reasonable type to support anyway. It requires a tiny bit of special handling, but nothing outrageous. | ||||
| | | | | * | | | | | | Token remover: exit early if message already deleted | 2020-06-15 | -1/+14 | ||
| | | | | | | | | | | | |||||
| | | | | * | | | | | | Token remover: move bot check to on_message | 2020-06-15 | -16/+7 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It just makes more sense to me to filter out messages at an earlier stage. | ||||
| | | | | * | | | | | | Token remover: ignore DMs | 2020-06-15 | -0/+10 | ||
| | | | | | |_|/ / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's a private channel so there's no risk of a token "leaking". Furthermore, messages cannot be deleted in DMs. | ||||
| | | | * / | | | | | Write unit test for `sub_clyde` | 2020-06-20 | -0/+27 | ||
| | | | |/ / / / / | |||||
| | | * | | | | | | Logging Tests: Simplify `DEBUG_MODE` `False` test | 2020-05-22 | -11/+1 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Remove embed attributes checks - Replace `self.dev_log.assert_awaited_once_with` with `self.dev_log.assert_awaited_once`. | ||||
| | | * | | | | | | Merge branch 'master' into logging-tests | 2020-05-17 | -10/+178 | ||
| | | |\ \ \ \ \ \ | |||||
| | | * | | | | | | | Created tests for `bot.cogs.logging` connected message. | 2020-04-14 | -0/+42 | ||
| | | | | | | | | | | |||||
| | * | | | | | | | | Sync: fix guild ID check | 2020-06-17 | -16/+19 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Need to compare the IDs against each other rather than the Guild object against the ID. | ||||
| | * | | | | | | | | Sync: ignore 404s in on_user_update | 2020-06-14 | -7/+10 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 404s probably mean the user is from another guild. | ||||
| | * | | | | | | | | Sync tests: test listeners ignore events from other guilds | 2020-06-14 | -10/+54 | ||
| | | |_|/ / / / / | |/| | | | | | | |||||
| | * | | | | | | | Merge pull request #937 from python-discord/bug/filters/928/non-ascii-token | 2020-06-12 | -102/+285 | ||
| | |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | Make token detection more robust and completely rewrite its tests | ||||
| | | * \ \ \ \ \ \ | Merge remote-tracking branch 'origin/master' into ↵ | 2020-06-02 | -40/+645 | ||
| | | |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug/filters/928/non-ascii-token | ||||
| | | * | | | | | | | | Token remover: remove the `delete_message` function | 2020-06-02 | -12/+7 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's redundant; there's no benefit here in abstracting two lines of code into a function. | ||||
| | | * | | | | | | | | Test find_token_in_message returns None for invalid matches | 2020-05-28 | -0/+15 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This covers the case when a token is matched, but its user ID and timestamp turn out to be invalid. | ||||
| | | * | | | | | | | | Adjust find_token_in_message tests for the recent cog changes | 2020-05-28 | -19/+20 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It now supports the changes that switched to finditer, added match groups, and added the Token NamedTuple. It also accounts for the is_maybe_token function being removed. For the sake of simplicity, call assertions on is_valid_user_id and is_valid_timestamp were not made. | ||||
| | | * | | | | | | | | Remove is_maybe_token tests | 2020-05-28 | -33/+0 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The function was removed due to redundancy. Therefore, its tests are obsolete. | ||||
| | | * | | | | | | | | Add more thorough and realistic inputs for token ID and timestamp tests | 2020-05-27 | -18/+52 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The tests for valid inputs and invalid inputs were split to make them more readable. | ||||
| | | * | | | | | | | | Adjust token remover tests to use the Token NamedTuple | 2020-05-27 | -6/+8 | ||
| | | | | | | | | | | | |||||