aboutsummaryrefslogtreecommitdiffstats
path: root/tests/cogs (follow)
Commit message (Collapse)AuthorAgeLines
* Remove empty tests.cogs folderGravatar Sebastiaan Zeeff2019-10-14-0/+0
|
* Make test_token_remover use our discord MocksGravatar Sebastiaan Zeeff2019-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`.Gravatar Johannes Christ2019-10-14-3/+3
|
* Move the `token_remover` cog tests to `unittest`.Gravatar Johannes Christ2019-10-14-0/+139
|
* Remove empty tests.cogs folderGravatar Sebastiaan Zeeff2019-10-14-0/+0
|
* Move sync tests to tests.bot.cogs.syncGravatar Sebastiaan Zeeff2019-10-13-210/+0
|
* Move the `sync` cog tests to `unittest`.Gravatar Johannes Christ2019-10-12-0/+210
|
* Migrate pytest to unittestGravatar Sebastiaan Zeeff2019-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 converterGravatar Joseph Banks2019-10-01-3/+4
|
* Add unit tests for role info commandGravatar Joseph Banks2019-09-21-0/+47
|
* Add basic tests for `bot.cogs.information`.Gravatar Johannes Christ2019-09-18-0/+163
|
* Merge pull request #430 from python-discord/bot-cogs-security-testsGravatar Johannes Christ2019-09-15-0/+54
|\ | | | | Add tests for `bot.cogs.security`.
| * Add tests for `bot.cogs.security`.Gravatar Johannes Christ2019-09-15-0/+54
| |
* | Add tests for `bot.cogs.token_remover`.Gravatar Johannes Christ2019-09-15-0/+133
|/
* Validate bot.cogs.antispam configuration on CI.Gravatar Johannes Christ2019-09-15-0/+30
|
* Updating role sync tests for position and adding tests for deletion detectionGravatar Sebastiaan Zeeff2019-08-15-21/+60
|
* Fix the linting issues with Bot so builds will work.Gravatar Scragly2019-03-09-1/+2
|
* Add test case for deduplication of `in_guild` field update.Gravatar Johannes Christ2019-01-03-0/+7
|
* Add role and user differ unit tests.Gravatar Johannes Christ2019-01-03-0/+125