Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Remove empty tests.cogs folder | 2019-10-14 | -0/+0 | |
| | ||||
* | Make test_token_remover use our discord Mocks | 2019-10-14 | -139/+0 | |
| | | | | | | | This commit replaces the standard MagicMocks by our specialized mocks for discord.py objects. It also adds the missing `channel` attribute to the `tests.helpers.MockMessage` mock and moves the file to the correct folder. | |||
* | Use `MockBot`. | 2019-10-14 | -3/+3 | |
| | ||||
* | Move the `token_remover` cog tests to `unittest`. | 2019-10-14 | -0/+139 | |
| | ||||
* | Remove empty tests.cogs folder | 2019-10-14 | -0/+0 | |
| | ||||
* | Move sync tests to tests.bot.cogs.sync | 2019-10-13 | -210/+0 | |
| | ||||
* | Move the `sync` cog tests to `unittest`. | 2019-10-12 | -0/+210 | |
| | ||||
* | Migrate pytest to unittest | 2019-10-11 | -600/+0 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After a discussion in the core developers channel, we have decided to migrate from `pytest` to `unittest` as the testing framework. This commit sets up the repository to use `unittest` and migrates the first couple of tests files to the new framework. What I have done to migrate to `unitest`: - Removed all `pytest` test files, since they are incompatible. - Removed `pytest`-related dependencies from the Pipfile. - Added `coverage.py` to the Pipfile dev-packages and relocked. - Added convenience scripts to Pipfile for running the test suite. - Adjust to `azure-pipelines.yml` to use `coverage.py` and `unittest`. - Migrated four test files from `pytest` to `unittest` format. In addition, I've added five helper Mock subclasses in `helpers.py` and created a `TestCase` subclass in `base.py` to add an assertion that asserts that no log records were logged within the context of the context manager. Obviously, these new utility functions and classes are fully tested in their respective `test_` files. Finally, I've started with an introductory guide for writing tests for our bot in `README.md`. | |||
* | Make tests work with Union converter | 2019-10-01 | -3/+4 | |
| | ||||
* | Add unit tests for role info command | 2019-09-21 | -0/+47 | |
| | ||||
* | Add basic tests for `bot.cogs.information`. | 2019-09-18 | -0/+163 | |
| | ||||
* | Merge pull request #430 from python-discord/bot-cogs-security-tests | 2019-09-15 | -0/+54 | |
|\ | | | | | Add tests for `bot.cogs.security`. | |||
| * | Add tests for `bot.cogs.security`. | 2019-09-15 | -0/+54 | |
| | | ||||
* | | Add tests for `bot.cogs.token_remover`. | 2019-09-15 | -0/+133 | |
|/ | ||||
* | Validate bot.cogs.antispam configuration on CI. | 2019-09-15 | -0/+30 | |
| | ||||
* | Updating role sync tests for position and adding tests for deletion detection | 2019-08-15 | -21/+60 | |
| | ||||
* | Fix the linting issues with Bot so builds will work. | 2019-03-09 | -1/+2 | |
| | ||||
* | Add test case for deduplication of `in_guild` field update. | 2019-01-03 | -0/+7 | |
| | ||||
* | Add role and user differ unit tests. | 2019-01-03 | -0/+125 | |