aboutsummaryrefslogtreecommitdiffstats
path: root/tests (follow)
Commit message (Collapse)AuthorAgeLines
...
| * | | | | | Create test for case when posting infraction failsGravatar ks1292020-10-11-1/+12
| | | | | | |
| * | | | | | Create test for case when user already have active Voice BanGravatar ks1292020-10-11-2/+11
| | | | | | |
| * | | | | | Create test for case when trying to voice ban user who haven't passed gateGravatar ks1292020-10-11-2/+11
| | | | | | |
| * | | | | | Create test for voice unbanGravatar ks1292020-10-11-0/+6
| | | | | | |
| * | | | | | Create test for temporary voice banGravatar ks1292020-10-11-1/+7
| | | | | | |
| * | | | | | Create test for permanent voice banGravatar ks1292020-10-11-0/+17
| | |/ / / / | |/| | | |
* | | | | | Silence tests: update docstrings in notifier testsGravatar MarkKoz2020-10-21-2/+2
| | | | | |
* | | | | | Silence: rename function to reduce ambiguityGravatar MarkKoz2020-10-18-8/+8
| | | | | |
* | | | | | Silence: require only 1 permission to be False for a manual unsilenceGravatar MarkKoz2020-10-09-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, both sending messages and adding reactions had to be false in order for the manual unsilence failure message to be sent. Because staff may only set one of these manually, the message should be sent if at least one of the permissions is set.
* | | | | | Merge master, fix conflicts, and create redis session in silence testsGravatar MarkKoz2020-10-09-1620/+1015
|\| | | | |
| * | | | | Refactor tests to use updated changes to syncer.py and API.Gravatar RohanJnr2020-10-07-58/+59
| | | | | |
| * | | | | Merge remote-tracking branch 'upstream/master' into smart_syncing_usersGravatar RohanJnr2020-10-04-72/+1
| |\ \ \ \ \
| | * | | | | Merge branch 'master' into discordpy-15Gravatar Senjan212020-10-03-62/+61
| | |\| | | |
| | * | | | | add missing test for `user` commandGravatar Senjan212020-10-03-0/+5
| | | | | | |
| | * | | | | Add missing blank line to satisfy the linting godsGravatar Senjan212020-10-02-0/+1
| | | | | | |
| | * | | | | Remove failing unit testsGravatar Senjan212020-10-02-78/+0
| | | |/ / / | | |/| | | | | | | | | | | | | | | Testing `information` cog seems redutant as it is not too important part of the bot.
| * | | | | Merge branch 'master' into smart_syncing_usersGravatar Rohan Reddy Alleti2020-10-02-65/+63
| |\ \ \ \ \ | | | |/ / / | | |/| | |
| | * | | | Merge branch 'master' into discord-py-upgrade-migrateGravatar MarkKoz2020-10-02-1386/+2947
| | |\| | |
| | * | | | (Snekbox Tests, discord.py 1.3.x Migrations): Fixed wrong assertion of help ↵Gravatar ks1292020-04-03-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | command call.
| | * | | | (Sync Cog Tests, discord.py 1.3.x Migrations): Removed `.callback` from ↵Gravatar ks1292020-04-03-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | commands calling.
| | * | | | (Silence Tests, discord.py 1.3.x Migrations): Removed `.callback` from ↵Gravatar ks1292020-04-03-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | commands calling.
| | * | | | (Snekbox Tests, discord.py 1.3.x Migrations): Removed `.callback` from ↵Gravatar ks1292020-04-03-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | commands calling.
| | * | | | (Information Tests): Replaced `asyncio.run` with `await` in `UserCommandTests`.Gravatar ks1292020-04-03-7/+6
| | | | | |
| | * | | | (Information Tests): Replaced `asyncio.run` with `await` in `UserEmbedTests`.Gravatar ks1292020-04-03-8/+8
| | | | | |
| | * | | | (Information Tests): Replaced `asyncio.run` with `await` in ↵Gravatar ks1292020-04-03-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | `UserInfractionHelperMethodTests.`
| | * | | | (Information Tests, discord.py 1.3.x Migration): Fixed `InformationCogTests` ↵Gravatar ks1292020-04-03-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | command calls.
| | * | | | (Information Tests, discord.py 1.3.x Migration): In `InformationCogTests`, ↵Gravatar ks1292020-04-03-8/+3
| | | | | | | | | | | | | | | | | | | | | | | | replaced `.callback` calls with direct command awaits.
| | * | | | (Information Tests, discord.py 1.3.x Migration): Moved from ↵Gravatar ks1292020-04-03-25/+29
| | | | | | | | | | | | | | | | | | | | | | | | `unittest.TestCase` to `unittest.IsolatedAsyncTestCase` rest of test case classes.
| | * | | | (Information Tests, discord.py 1.3.x Migration): Moved from ↵Gravatar ks1292020-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.Gravatar ks1232020-04-02-2/+2
| | | | | |
| | * | | | (Patches, discord.py 1.3.x Migration): Removed patches due not longer necessary.Gravatar ks1232020-04-02-0/+0
| | | | | |
| * | | | | Refactor unit tests UserSyncerSyncTests to use changes made to UserSyncer in ↵Gravatar RohanJnr2020-10-02-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | _syncers.py
| * | | | | update UserSyncerDiffTests Tests to use changes made to API calls.Gravatar RohanJnr2020-10-02-6/+32
| | | | | |
| * | | | | Merge branch 'master' into smart_syncing_usersGravatar Rohan Reddy Alleti2020-10-01-371/+138
| |\ \ \ \ \ | | | |/ / / | | |/| | |
| | * | | | PR #1151 Sync: remove confirmationGravatar kwzrd2020-09-26-345/+14
| | |\ \ \ \
| | | * \ \ \ Merge branch 'master' into feat/backend/1075/remove-syncer-confirmGravatar MarkKoz2020-09-22-972/+574
| | | |\ \ \ \
| | | * | | | | Fix test for sync message being editedGravatar MarkKoz2020-09-07-1/+3
| | | | | | | |
| | | * | | | | Sync: remove confirmationGravatar MarkKoz2020-09-07-345/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The confirmation was intended to be a safe guard against cache issues that would cause a huge number of roles/users to deleted after syncing. With `wait_until_guild_available`, such cache issue shouldn't arise. Therefore, this feature is obsolete. Resolve #1075
| | * | | | | | Merge pull request #1161 from bast0006/feature-bast-user-token-notifyGravatar Mark2020-09-25-26/+124
| | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Add userid decoding and user token detection to the token removal moderation feature
| | | * | | | | | Remove redundant is_valid_userid functionGravatar Bast2020-09-25-19/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | extract_user_id(id) is not None does the same job and is not worth the extra function
| | | * | | | | | Change the mod alert message component for the user token detectionGravatar Bast2020-09-24-37/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean up mock usage, docstrings, unnecessarily split-lined function calls
| | | * | | | | | Add BOT vs USER token detection, properly handling bot tokens for bots in ↵Gravatar Bast2020-09-24-8/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the current server Also adjust the naming and purposes of the format messages to KNOWN and UNKNOWN token messages.
| | | * | | | | | Implement review-suggested changesGravatar Bast2020-09-24-33/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | userid -> user ID maybevalid -> maybe_valid remove collections import and added a new function that handles the "format user ID log message" and should_ping_everyone feature
| | | * | | | | | Merge branch 'master' into feature-bast-user-token-notifyGravatar Bast2020-09-21-101/+462
| | | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Resynchronize changes with the new cog folder arrangement
| | | * | | | | | | Make token_remover check basic HMAC validity (not low entropy)Gravatar Bast2020-09-19-5/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Handles cases like xxx.xxxxx.xxxxxxxx where a user has intentionally censored part of a token, and will not consider them "valid"
| | | * | | | | | | Add feature to token_remover: log detected user ID, and ping if it's a user ↵Gravatar Bast2020-09-19-6/+39
| | | | |_|_|_|_|/ | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in the server Updated tests This comes with a change that a user ID must actually be able to be decoded into an integer to be considered a valid token
| * | / | | | | | modify tests to use paginated response.Gravatar RohanJnr2020-09-27-6/+37
| |/ / / / / / /
| * | | | | | | Merge branch 'master' into feat/info/1125/user-cmd-whitelist-modmailGravatar MarkKoz2020-09-22-989/+599
| |\ \ \ \ \ \ \
| | * \ \ \ \ \ \ Merge branch 'master' into feat/frontend/533/mod-log-namesGravatar MarkKoz2020-09-22-1019/+652
| | |\ \ \ \ \ \ \ | | | | |_|_|/ / / | | | |/| | | | |
| | | * | | | | | Merge branch 'master' into sebastiaan/features/use-async-rediscache-packageGravatar Sebastiaan Zeeff2020-09-22-672/+491
| | | |\ \ \ \ \ \