aboutsummaryrefslogtreecommitdiffstats
path: root/tests (follow)
Commit message (Collapse)AuthorAgeLines
...
| * | | | 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
| | * | | | | modify tests to use paginated response.Gravatar RohanJnr2020-09-27-6/+37
| | | | | | |
| * | | | | | Silence tests: make _async_init attribute tests more robustGravatar MarkKoz2020-10-08-7/+11
| | | | | | |
| * | | | | | Silence: remove _mod_log_channel attributeGravatar MarkKoz2020-10-08-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's only used as an argument to `SilenceNotifier`, so it doesn't need to be an instance attribute.
| * | | | | | Silence: add to notifier when indefinite rather than temporaryGravatar MarkKoz2020-10-08-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Accidentally swapped the logic in a previous commit during a refactor.
| * | | | | | Silence tests: fix unawaited coro warningsGravatar MarkKoz2020-10-07-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because the Scheduler is mocked, it doesn't actually do anything with the coroutines passed to the schedule() functions, hence the warnings.
| * | | | | | Silence: rename _init_cog to _async_initGravatar MarkKoz2020-10-06-13/+13
| | | | | | |
| * | | | | | Silence: refactor _silenceGravatar MarkKoz2020-10-06-16/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Rename to `_silence_overwrites` * Reduce responsibilities to only setting permission overwrites * Log in `silence` instead * Add to notifier in `silence` instead
| * | | | | | Silence: cancel init task when cog unloadsGravatar MarkKoz2020-08-18-2/+5
| | | | | | |
| * | | | | | Silence: rename cachesGravatar MarkKoz2020-08-18-20/+20
| | | | | | |
| * | | | | | Silence tests: remove unnecessary spec_set argsGravatar MarkKoz2020-08-18-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | It's not really necessary to set to True when mocking functions.
| * | | | | | Silence tests: more accurately assert the silence cmd schedule a taskGravatar MarkKoz2020-08-18-3/+7
| | | | | | |
| * | | | | | Silence tests: add a test for rescheduling active silencesGravatar MarkKoz2020-08-18-0/+29
| | | | | | |
| * | | | | | Silence tests: test the rescheduler unsilences expired silencesGravatar MarkKoz2020-08-18-0/+14
| | | | | | |
| * | | | | | Silence tests: test the rescheduler adds permanent silence to notifierGravatar MarkKoz2020-08-18-0/+14
| | | | | | |
| * | | | | | Silence tests: test the scheduler skips missing channelsGravatar MarkKoz2020-08-18-0/+25
| | | | | | |
| * | | | | | Silence tests: add a test for _init_cog rescheduling unsilencesGravatar MarkKoz2020-08-18-0/+7
| | | | | | |
| * | | | | | Silence tests: remove _reschedule patch for cog testsGravatar MarkKoz2020-08-18-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | They don't do anything because they patch the class rather than the instance. It's too late for patching the instance to work since the `setUp` fixture, which instantiates the cog, executes before the patches do. Patching `setUp` would work (and its done in the other test cases), but some tests in this case will need the unpatched function too. Patching it doesn't serve much benefit to most tests anyway, so it's not worth the effort trying to make them work where they aren't needed.
| * | | | | | Silence tests: access everything via the silence moduleGravatar MarkKoz2020-08-18-24/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The module is imported anyway to keep imports short and clean. Using it in patch targets is shorter and allows for the two imports from the module to be removed.