| Commit message (Collapse) | Author | Age | Lines | |
|---|---|---|---|---|
| * | (Sync Cog Tests, discord.py 1.3.x Migrations): Removed `.callback` from ↵ | 2020-04-03 | -2/+2 | |
| | | | | | commands calling. | |||
| * | (Silence Tests, discord.py 1.3.x Migrations): Removed `.callback` from ↵ | 2020-04-03 | -2/+2 | |
| | | | | | commands calling. | |||
| * | (Snekbox Tests, discord.py 1.3.x Migrations): Removed `.callback` from ↵ | 2020-04-03 | -4/+4 | |
| | | | | | commands calling. | |||
| * | (Information Tests): Replaced `asyncio.run` with `await` in `UserCommandTests`. | 2020-04-03 | -7/+6 | |
| | | ||||
| * | (Information Tests): Replaced `asyncio.run` with `await` in `UserEmbedTests`. | 2020-04-03 | -8/+8 | |
| | | ||||
| * | (Information Tests): Replaced `asyncio.run` with `await` in ↵ | 2020-04-03 | -2/+2 | |
| | | | | | `UserInfractionHelperMethodTests.` | |||
| * | (Information Tests, discord.py 1.3.x Migration): Fixed `InformationCogTests` ↵ | 2020-04-03 | -3/+3 | |
| | | | | | command calls. | |||
| * | (Information Tests, discord.py 1.3.x Migration): In `InformationCogTests`, ↵ | 2020-04-03 | -8/+3 | |
| | | | | | replaced `.callback` calls with direct command awaits. | |||
| * | (Information Tests, discord.py 1.3.x Migration): Moved from ↵ | 2020-04-03 | -25/+29 | |
| | | | | | `unittest.TestCase` to `unittest.IsolatedAsyncTestCase` rest of test case classes. | |||
| * | (Information Tests, discord.py 1.3.x Migration): Moved from ↵ | 2020-04-03 | -4/+4 | |
| | | | | | `unittest.TestCase` to `unittest.IsolatedAsyncTestCase` in `InformationCogTests`. | |||
| * | (Snekbox Fix, discord.py 1.3.x Migration): Applied one reaction clear to tests. | 2020-04-02 | -2/+2 | |
| | | ||||
| * | (Patches, discord.py 1.3.x Migration): Removed patches due not longer necessary. | 2020-04-02 | -0/+0 | |
| | | ||||
| * | Set unsilence permissions to inherit instead of true | 2020-03-30 | -1/+1 | |
| | | | | | | | The "unsilence" action of the silence/hush command used `send_messages=True` when unsilencing a hushed channel. This had the side effect of also enabling send messages permissions for those with the Muted rule, as an explicit True permission apparently overwrites an explicit False permission, even if the latter was set for a higher top-role. The solution is to revert back to the `Inherit` permission by assigning `None`. This is what we normally use when Developers are allowed to send messages to a channel. | |||
| * | Merge branch 'master' into hush-cog | 2020-03-30 | -58/+131 | |
| |\ | ||||
| | * | Snekbox tests: use `get_code` in `test_continue_eval_does_continue` | 2020-03-25 | -3/+6 | |
| | | | ||||
| | * | Snekbox tests: test `get_code` | 2020-03-25 | -4/+32 | |
| | | | | | | | | | | | Should return 1st arg (or None) if eval cmd in message, otherwise return full content. | |||
| | * | Cog tests: comment some code for clarification | 2020-03-16 | -0/+3 | |
| | | | ||||
| | * | Cog tests: fix error on import due to discord.ext.tasks.loop | 2020-03-13 | -3/+5 | |
| | | | | | | | | | | | The tasks extensions loop requires an event loop to exist. To work around this, it's been mocked. | |||
| | * | Cog tests: fix leading space in aliases without parents | 2020-03-13 | -1/+1 | |
| | | | ||||
| | * | Cog tests: add a test for duplicate command names & aliases | 2020-03-13 | -0/+17 | |
| | | | ||||
| | * | Cog tests: fix duplicate commands being yielded | 2020-03-13 | -1/+2 | |
| | | | | | | | | | | | discord.py yields duplicate Command objects for each alias a command has, so the duplicates need to be removed on our end. | |||
| | * | Cog tests: fix nested modules not being found | 2020-03-13 | -9/+13 | |
| | | | | | | | | | | | * Rename `walk_extensions` to `walk_modules` because some extensions don't consist of a single module | |||
| | * | Cog tests: fix duplicate cogs being yielded | 2020-03-13 | -1/+2 | |
| | | | | | | | | | Have to check the modules are equal to prevent yielding imported cogs. | |||
| | * | Cog tests: fix Cog type check in `walk_cogs` | 2020-03-13 | -3/+3 | |
| | | | ||||
| | * | Cog tests: add a function to yield all commands | 2020-03-13 | -0/+7 | |
| | | | | | | | | | This will help reduce nesting in the actual test. | |||
| | * | Cog tests: add a function to get all qualified names for a cmd | 2020-03-13 | -0/+8 | |
| | | | ||||
| | * | Cog tests: add a function to get all cogs | 2020-03-13 | -0/+7 | |
| | | | ||||
| | * | Cog tests: add a function to get all extensions | 2020-03-13 | -0/+11 | |
| | | | ||||
| | * | Cog tests: add a function to get all commands | 2020-03-09 | -0/+12 | |
| | | | | | | | | | | | | | | | | | For tests, ideally creating instances of cogs should be avoided to avoid extra code execution. This function was copied over from discord.py because their function is not a static method, though it still works as one. It was probably just a design decision on their part to not make it static. | |||
| | * | Cog tests: create boilerplate for command name tests | 2020-03-09 | -0/+7 | |
| | | | ||||
| | * | Merge branch 'master' into roles-command-pagination | 2020-03-05 | -48/+11 | |
| | |\ | ||||
| | | * | Update code for pep8-naming compliance | 2020-03-03 | -6/+6 | |
| | | | | ||||
| | | * | Remove CaseInsensitiveDict | 2020-03-03 | -37/+0 | |
| | | | | | | | | | | This was added by the now-removed Snake cog & is not used elsewhere on bot. | |||
| | | * | Add more pre-commit hooks | 2020-03-02 | -5/+5 | |
| | | | | | | | | | | | | | | | | * Remove trailing whitespaces * Specify error code for a noqa in the free command | |||
| | * | | (Information Cog, !roles command test): Removed 's' at end of "Total 1 ↵ | 2020-03-05 | -1/+1 | |
| | | | | | | | | | | | | | role(s)" due changes in command. | |||
| | * | | (Information Cog, !roles command test): Applied empty parameter change. | 2020-03-05 | -1/+1 | |
| | | | | ||||
| | * | | Merge branch 'master' into roles-command-pagination | 2020-03-03 | -512/+196 | |
| | |\| | ||||
| | * | | !roles Command Test: Applied !roles command changes | 2020-03-01 | -3/+2 | |
| | | | | ||||
| * | | | Add tests for `HushDurationConverter`. | 2020-03-17 | -0/+30 | |
| | | | | ||||
| * | | | Add tests ensuring permissions get preserved. | 2020-03-17 | -0/+31 | |
| | | | | ||||
| * | | | Use set `discard` instead of `remove`. | 2020-03-17 | -1/+1 | |
| | | | | | | | | | | | | | | | | Discard ignores non present values, allowing us to skip the KeyError suppress. | |||
| * | | | Add docstring to test. | 2020-03-17 | -0/+1 | |
| | | | | ||||
| * | | | Fix test name. | 2020-03-17 | -1/+1 | |
| | | | | | | | | | | | | | `removed` was describing the opposite behaviour. | |||
| * | | | Remove `alert_channel` mention from docstring. | 2020-03-17 | -1/+1 | |
| | | | | | | | | | | | | | | | | After removing the optional channel arg and changing output message channels we're only testing `ctx`'s `send`. | |||
| * | | | Remove one indentation level. | 2020-03-17 | -3/+3 | |
| | | | | | | | | | | | | | Co-authored-by: MarkKoz <[email protected]> | |||
| * | | | Rename `cog_unload` tests. | 2020-03-17 | -2/+2 | |
| | | | | | | | | | | | | | Previous names were undescriptive from testing phases. | |||
| * | | | Fix `test_cog_unload` passing tests with invalid values. | 2020-03-17 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | | | | | The first assert - `asyncio_mock.create_task.assert_called_once_with` called `alert_channel`'s send resulting in an extra call. `send` on `alert_channel` was not tested properly because of a typo and a missing assert in the method call. | |||
| * | | | Set `_get_instance_vars_event` in test's `setUp`. | 2020-03-15 | -0/+2 | |
| | | | | ||||
| * | | | Adjust tests for new calling behaviour. | 2020-03-15 | -2/+2 | |
| | | | | | | | | | | | | | | | | `.set_permissions` calls were changed to use kwargs directly instead of an overwrite, this reflects the changes in tests. | |||
| * | | | Use dict instead of a set and custom class. | 2020-03-15 | -25/+3 | |
| | | | | | | | | | | | | | | | | The FirstHash class is no longer necessary with only channels and the current loop in tuples. FirstHash was removed, along with its tests and tests were adjusted for new dict behaviour. | |||