aboutsummaryrefslogtreecommitdiffstats
path: root/tests (follow)
Commit message (Collapse)AuthorAgeLines
* Uses Async Asserts Where PossibleGravatar Hassan Abouelela2021-04-24-21/+21
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Removes Unnecessary Members In Silence TestsGravatar Hassan Abouelela2021-04-21-16/+14
| | | | | | | Reduces the number of members created for each test to the bare minimum required. Signed-off-by: Hassan Abouelela <[email protected]>
* Merge branch 'main' into voicechannel-muteGravatar Hassan Abouelela2021-04-20-12/+77
|\
| * 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.
| * Merge branch 'main' into doc-impGravatar kosayoda2021-04-12-13/+11
| |\
| * \ Merge remote-tracking branch 'upstream/main' into doc-impGravatar Numerlor2021-03-25-19/+49
| |\ \
| * | | 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
| | | | | | | | | |
* | | | | | | | | | Merge branch 'main' into voicechannel-muteGravatar Hassan Abouelela2021-04-06-18/+18
|\ \ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|_|_|/ | |/| | | | | | | |
| * | | | | | | | | 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 branch 'main' into swfarnsworth/infraction_messageGravatar Matteo Bertucci2021-03-17-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.
* | | | | | | | | | Removes Unused Mock ResetGravatar Hassan Abouelela2021-03-12-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | | | | | | Use Mock Side Effect Instead Of Extra FunctionGravatar Hassan Abouelela2021-03-10-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes the mock used for creating an erroneous function in the silence tests cog to use the side effect property instead of an extra function. Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | | | | | | Simplifies Redundant Unsilence Target TestGravatar Hassan Abouelela2021-03-10-33/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removes redundant functionality from the `test_unsilence_helper_fail` test as it is covered by another test. Keeps the functionality that isn't being tested elsewhere. Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | | | | | | Combine Silence Target TestsGravatar Hassan Abouelela2021-03-10-38/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Combine two tests that are responsible for checking the silence helper uses the correct channel and message. Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | | | | | | Merge branch 'master' into voicechannel-muteGravatar Hassan Abouelela2021-03-10-3/+3
|\ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / | |/| | | | | | | |
| * | | | | | | | | Fixed unittest for purge infraction.Gravatar xithrius2021-03-08-1/+1
| |/ / / / / / / /
| * | | | | | | | Update token remover unittestsGravatar Matteo Bertucci2021-02-21-2/+2
| | | | | | | | |
* | | | | | | | | Modifies Silence TestsGravatar Hassan Abouelela2021-02-05-15/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a missing test assertion, and seperates the voice and text components of a test. Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | | | | | Modifies Silence TestsGravatar Hassan Abouelela2021-02-05-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a missing test assertion, and seperates the voice and text components of a test. Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | | | | | Separates Voice Overwrite TestsGravatar Hassan Abouelela2021-02-04-9/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | | | | | Adds Move To Failure TestsGravatar Hassan Abouelela2021-02-04-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | | | | | Updates Voice Kick Restriction TestsGravatar Hassan Abouelela2021-02-04-9/+17
| | | | | | | | |
* | | | | | | | | Merge branch 'master' into voicechannel-muteGravatar Hassan Abouelela2021-02-04-39/+64
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # bot/constants.py
| * | | | | | | | 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]>
| * | | | | | | | Merge branch 'master' into mbaruh/sm-statsGravatar Matteo Bertucci2021-01-21-1/+1
| |\ \ \ \ \ \ \ \
| | * \ \ \ \ \ \ \ Merge branch 'master' into fuzz-the-matchesGravatar Mark2021-01-20-11/+18
| | |\ \ \ \ \ \ \ \ | | | | |/ / / / / / | | | |/| | | | | |
| | * | | | | | | | Merge branch 'master' into fuzz-the-matchesGravatar kosayoda2021-01-18-295/+734
| | |\ \ \ \ \ \ \ \ | | | | |_|_|_|_|_|/ | | | |/| | | | | |
| | * | | | | | | | Merge branch 'master' into fuzz-the-matchesGravatar Leon Sandøy2020-10-10-167/+150
| | |\ \ \ \ \ \ \ \ | | | | |_|_|_|_|/ / | | | |/| | | | | |
| | * | | | | | | | Fuzzy match roles for `!role` command.Gravatar kosayoda2020-10-01-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An arbitrary cutoff score of 80 is chosen because it works. A bug in the test for the same command is also fixed.
| * | | | | | | | | Changed slowmode reset testsGravatar mbaruh2021-01-21-12/+4
| | |_|_|/ / / / / | |/| | | | | | |
| * | | | | | | | Sync: test chunking of user requestsGravatar MarkKoz2021-01-18-11/+18
| | |_|/ / / / / | |/| | | | | |
| * | | | | | | Annihilate all traces of Developer and Unverified rolesGravatar mbaruh2021-01-11-3/+1
| | | | | | | |
| * | | | | | | "Pending: False" to "Verified: True" to agree with new semantics.Gravatar Steele2020-12-30-1/+1
| | | | | | | |