aboutsummaryrefslogtreecommitdiffstats
path: root/tests (follow)
Commit message (Collapse)AuthorAgeLines
* Remove TagNameConverterGravatar Numerlor2021-09-06-53/+0
| | | | | | | The converter was now only used to restrict requested names which can be handled by not matching a tag in the cog and not displaying output, this allows us to be a bit more generous with tag names during the command fallback when a name with invalid symbols is parsed after a group
* Fix testsGravatar Numerlor2021-07-06-10/+18
| | | | | Unnecessary invoked with mocks were removed and some more checks added for the new behaviour
* Merge branch 'main' into xdistGravatar Hassan Abouelela2021-06-27-17/+32
|\ | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]> # Conflicts: # poetry.lock
| * Tests: update infraction DM to mention UTCGravatar Matteo Bertucci2021-06-10-2/+2
| |
| * Renamed blocked_extension_str to blocked_extension.Gravatar Xithrius2021-06-06-1/+1
| |
| * Added new formats to unittest docstrings.Gravatar Xithrius2021-06-06-2/+2
| |
| * Added subtests for `.txt`, `.json`, and `.csv` files.Gravatar Xithrius2021-06-06-16/+28
| |
| * Added .txt file extension to antimalware test.Gravatar Xithrius2021-06-06-1/+4
| |
* | Renamed Test Task In DocumentationGravatar Hassan Abouelela2021-06-12-1/+1
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | Fix Script Count In DocumentationGravatar Hassan Abouelela2021-06-07-1/+1
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | Adds Fast-Test TaskGravatar Hassan Abouelela2021-06-07-0/+1
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | Switches To Pytest As Test RunnerGravatar Hassan Abouelela2021-06-07-1/+5
|/ | | | | | | | Switches the test runner from unittest to pytest, to allow the usage of plugins such as xdist. This commit also adds pytest-cov purely as a generator for .coverage files. Signed-off-by: Hassan Abouelela <[email protected]>
* Updates Usages Of Pipenv To PoetryGravatar Hassan Abouelela2021-05-11-5/+5
| | | | | | | Updates the Dockerfile, pre-commit, CI, and documentation to reflect the new dependency manager. Dockerfile is also updated to 3.9. Signed-off-by: Hassan Abouelela <[email protected]>
* Remove test for un-available function.Gravatar rohan2021-05-10-13/+0
|
* (infractions): Modify voice ban tests according to new changes in 3272605Gravatar Shivansh2021-05-07-2/+2
|
* Address error behavior update.Gravatar kosayoda2021-04-28-1/+1
| | | | | BadUnionArgument sends command help after: https://github.com/python-discord/bot/pull/1434
* Remove BrandingError check.Gravatar kosayoda2021-04-28-5/+0
| | | | | This was removed in the branding manager rewrite: https://github.com/python-discord/bot/pull/1463/
* Merge branch 'main' into error-handler-testGravatar kosayoda2021-04-28-33/+100
|\
| * Merge branch 'main' into feat/1365/add-bot-badges-to-userGravatar Matteo Bertucci2021-04-25-1/+1
| |\
| | * Tests: AsyncMock is now in the standard library!Gravatar Matteo Bertucci2021-04-20-1/+1
| | | | | | | | | The `tests/README.md` file still referenced our old custom `AsyncMock` that has been removed in favour of the standard library one that has been introduced in 3.8. This commit fixes this by updating the section.
| * | Tests: simplify public flags handlingGravatar Matteo Bertucci2021-04-24-8/+2
| | | | | | | | | | | | Co_authored-by: Numerlor <[email protected]>
| * | Tests: members shouldn't have any public flagsGravatar Matteo Bertucci2021-04-17-0/+8
| |/
| * Merge branch 'main' into doc-impGravatar kosayoda2021-04-12-13/+11
| |\
| | * Minor test changes for the !user embedGravatar Ben Soyka2021-04-05-10/+6
| | |
| | * Update information tests for new embed color logicGravatar Ben Soyka2021-04-04-6/+8
| | |
| | * Fix tests for paste uploads.Gravatar Den42002021-03-27-2/+2
| | | | | | | | | | | | Accounts for no redirects on extensions that are not `.py`.
| * | Merge remote-tracking branch 'upstream/main' into doc-impGravatar Numerlor2021-03-25-19/+49
| |\|
| | * Merge branch 'main' into swfarnsworth/infraction_messageGravatar Matteo Bertucci2021-03-17-1/+1
| | |\
| | | * Fixed unittest for purge infraction.Gravatar xithrius2021-03-08-1/+1
| | | |
| | * | Update the tests to reflect changes in expected behavior.Gravatar swfarnsworth2021-02-28-5/+7
| | | | | | | | | | | | | | | | The DM sent to infracted users now instructs them to DM modmail if they want to discuss non-ban infractions, so the tests now check if that instruction is present. Note that there already exists a superfluous test for note infractions, for which no DM is sent by design.
| | * | Instructions to dispute an infraction vary by infraction type.Gravatar swfarnsworth2021-02-25-3/+3
| | |/ | | | | | | | | | Previously, the user was instructed to email the appeals email for infraction types that don't remove one from the server. They are now instructed to DM ModMail except for Ban-type infractions. Also removed the URL string literal from the hyperlink to that URL.
| | * Update token remover unittestsGravatar Matteo Bertucci2021-02-21-2/+2
| | |
| * | Handle arbitrary amount of backslashes preceding the quote charGravatar Numerlor2021-03-07-0/+7
| | | | | | | | | | | | Tests for this were added additionally
| * | Correct tests casesGravatar Numerlor2021-03-05-2/+2
| | | | | | | | | | | | | | | The tests were not adjusted after the converter was corrected to accept digits
| * | Add unittests for _split_signatureGravatar Numerlor2021-02-23-0/+59
| | |
| * | Merge remote-tracking branch 'upstream/master' into doc-impGravatar Numerlor2021-01-22-24/+23
| |\ \
| * \ \ Merge remote-tracking branch 'upstream/master' into doc-impGravatar Numerlor2021-01-11-24/+6
| |\ \ \
| * \ \ \ Merge remote-tracking branch 'upstream/master' into doc-impGravatar Numerlor2020-12-11-86/+104
| |\ \ \ \
| * \ \ \ \ Merge remote-tracking branch 'upstream/master' into doc-impGravatar Numerlor2020-11-10-194/+633
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # LICENSE-THIRD-PARTY # bot/exts/info/doc.py
| * \ \ \ \ \ Merge remote-tracking branch 'upstream/master' into doc-impGravatar Numerlor2020-10-10-1546/+848
| |\ \ \ \ \ \
| * \ \ \ \ \ \ Merge remote-tracking branch 'upstream/master' into doc-impGravatar Numerlor2020-09-20-335/+1886
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # bot/cogs/doc/cog.py # bot/converters.py # tests/bot/test_converters.py
| * | | | | | | | Change ValidPythonIdentifier tests to PackageName.Gravatar Numerlor2020-07-22-11/+10
| | | | | | | | |
* | | | | | | | | Update error handler tests to match with recent changesGravatar ks1292021-02-19-9/+72
| | | | | | | | |
* | | | | | | | | Remove verification channel special case from error handler testsGravatar ks1292021-02-19-13/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We don't have a verification channel anymore, so this have no point and this just give errors.
* | | | | | | | | Merge branch 'master' into error-handler-testGravatar ks1292021-02-19-59/+68
|\ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|_|/ | |/| | | | | | |
| * | | | | | | | Merge pull request #1313 from HassanAbouelela/fix-voiceban-member-bugGravatar Senjan212021-02-03-11/+39
| |\ \ \ \ \ \ \ \ | | |_|_|_|_|_|_|/ | |/| | | | | | | Adds Member Checks Before Changing Voice
| | * | | | | | | Restructures Voice Ban ActionGravatar Hassan Abouelela2021-01-21-11/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updates the voice ban action so the infraction pardoning is always run, and so all operations are handled in the _scheduler. Updates tests.
| | * | | | | | | Merge branch 'master' into fix-voiceban-member-bugGravatar Hassan Abouelela2021-01-20-35/+24
| | |\ \ \ \ \ \ \
| | * | | | | | | | Cleans Up TestsGravatar Hassan Abouelela2021-01-20-5/+5
| | | | | | | | | |
| | * | | | | | | | Adds Member Checks Before Changing VoiceGravatar Hassan Abouelela2020-11-30-1/+14
| | | |_|_|_|_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a check that checks if the user object is an instance of guild member, before performing guild operations. Adds tests. Signed-off-by: Hassan Abouelela <[email protected]>