aboutsummaryrefslogtreecommitdiffstats
path: root/tests (follow)
Commit message (Collapse)AuthorAgeLines
...
| * | | Silence tests: add a test for deletion from the time cacheGravatar MarkKoz2020-08-17-0/+5
| | | |
| * | | Silence tests: add tests for scheduling tasksGravatar MarkKoz2020-08-17-0/+12
| | | |
| * | | Silence tests: add a test for caching permanent timesGravatar MarkKoz2020-08-17-0/+6
| | | |
| * | | Silence tests: add a test for the time cacheGravatar MarkKoz2020-08-17-0/+15
| | | |
| * | | Silence tests: fix mock for _init_taskGravatar MarkKoz2020-08-17-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | An `AsyncMock` fails because it returns a coroutine which may only be awaited once. However, an `asyncio.Future` is perfect because it is easy to create and can be awaited repeatedly, just like the actual `asyncio.Task` that is being mocked.
| * | | Silence tests: create channel and overwrite in setUp for silence testsGravatar MarkKoz2020-08-17-29/+17
| | | | | | | | | | | | | | | | Reduce code redundancy by only defining them once.
| * | | Silence tests: merge unsilence fixture into setUpGravatar MarkKoz2020-08-17-32/+20
| | | | | | | | | | | | | | | | | | | | Now that there are separate test cases, there's no need to keep the fixtures separate.
| * | | Silence tests: autospec _reschedule and SilenceNotifier for cog testsGravatar MarkKoz2020-08-17-4/+10
| | | |
| * | | Silence tests: separate test cases; refactor names & docstringsGravatar MarkKoz2020-08-17-71/+95
| | | |
| * | | Silence tests: fix tests for _unsilenceGravatar MarkKoz2020-08-17-30/+45
| | | | | | | | | | | | | | | | | | | | Add a fixture to set up mocks for a successful `unsilence` call. This reduces code redundancy.
| * | | Silence tests: fix test_unsilence_private_removed_notifierGravatar MarkKoz2020-08-17-2/+5
| | | |
| * | | Silence tests: fix overwrite preservation test for silencesGravatar MarkKoz2020-08-17-11/+15
| | | |
| * | | Silence tests: fix command message testsGravatar MarkKoz2020-08-17-15/+10
| | | |
| * | | Silence tests: fix test_silence_private_for_falseGravatar MarkKoz2020-08-17-4/+13
| | | |
| * | | Silence tests: fix test_silence_private_silenced_channelGravatar MarkKoz2020-08-17-3/+10
| | | |
| * | | Silence tests: fix test_silence_private_notifierGravatar MarkKoz2020-08-17-0/+3
| | | |
| * | | Silence tests: fix test_unsilence_private_for_falseGravatar MarkKoz2020-08-17-1/+4
| | | |
| * | | Silence tests: fix silence cache test for overwritesGravatar MarkKoz2020-08-17-5/+8
| | | |
| * | | Silence tests: replace obsolete cog_unload testsGravatar MarkKoz2020-08-17-13/+4
| | | | | | | | | | | | | | | | | | | | Moderation notifications are no longer sent so that doesn't need to be tested.
| * | | Silence tests: rename test_instance_vars to test_init_cogGravatar MarkKoz2020-08-17-5/+5
| | | |
| * | | Silence tests: mock RedisCachesGravatar MarkKoz2020-08-17-3/+2
| | | |
| * | | Tests: optionally prevent autospec helper from passing mocksGravatar MarkKoz2020-08-17-19/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not everything that's decorated needs the mocks that are patched. Being required to add the args to the test function anyway is annoying. It's especially bad if trying to decorate an entire test suite, as every test would need the args. Move the definition to a separate module to keep things cleaner.
| * | | Silence: rename _get_instance_vars to _init_cogGravatar MarkKoz2020-08-16-4/+4
| | | | | | | | | | | | | | | | It's a more accurate name since it also reschedules unsilences now.
* | | | Merge remote-tracking branch 'upstream/master' into doc-impGravatar Numerlor2020-10-10-1546/+848
|\ \ \ \ | | |/ / | |/| |
| * | | 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
| | | |\ \ \