aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Expand)AuthorLines
2019-12-11Clean: allow amount argument to be skipped Gravatar Mark-4/+4
2019-12-11Clean: support specifying a channel different than the context'sGravatar MarkKoz-13/+18
2019-12-11Clean: un-hide from help and add purge aliasGravatar MarkKoz-1/+1
2019-12-09Ensure hidden_channels and bypass_roles use a list when not passed.Gravatar Manuel Ignacio Pérez Alcolea-0/+3
2019-12-05Added optional channel parameter to !echo:Gravatar Daniel Brown-4/+7
2019-12-03Antimalware: fix paste service URL showing replacement fieldGravatar MarkKoz-1/+1
2019-12-04Renamed function and improved its docstring to better reflect its purposes.Gravatar Shirayuki Nekomata-16/+9
2019-12-03Deleted `get_duration` and switched to using the already, nicely made `humani...Gravatar Shirayuki Nekomata-48/+8
2019-12-03Removed pytest, getting ready to migrate to unittest in another PRGravatar Shirayuki Nekomata-44/+0
2019-12-01Allow snekbox in esoteric-python channelGravatar MarkKoz-4/+15
2019-11-30Update bot/cogs/moderation/modlog.pyGravatar Leon Sandøy-1/+1
2019-11-27Apply review comments to duckpond's unit testsGravatar Sebastiaan Zeeff-72/+128
2019-11-27Move duckpond payload emoji check to method to create testable unitGravatar Sebastiaan Zeeff-6/+14
2019-11-27Updated test cases for `parts: Optional[int]`Gravatar Shirayuki Nekomata-23/+32
2019-11-27Updated docstrings, allow passing `parts: Optional[int] = 2` to helper functi...Gravatar Shirayuki Nekomata-6/+14
2019-11-27Updated test cases for `get_duration_from_expiry()`Gravatar Shirayuki Nekomata-8/+9
2019-11-27Refactored `scheduler.py` to use the new `get_duration_from_expiry()`Gravatar Shirayuki Nekomata-10/+4
2019-11-27Refactored `management.py` to use the new `get_duration_from_expiry()`Gravatar Shirayuki Nekomata-5/+4
2019-11-27Changed `get_duration_from_expiry()` to return the `time (duration)` or a `''`Gravatar Shirayuki Nekomata-2/+11
2019-11-27Added duration until expiration for infraction searching.Gravatar Shirayuki Nekomata-2/+5
2019-11-27Fixed "14 minutes, 60 seconds" by rounding `.total_seconds()` in `bot.utils.t...Gravatar Shirayuki Nekomata-0/+1
2019-11-27Added expiry duration when applying infraction ( including in the embed sent ...Gravatar Shirayuki Nekomata-3/+6
2019-11-27Updated `bot.utils.time.get_duration_from_expiry()` to accept an optional `da...Gravatar Shirayuki Nekomata-2/+2
2019-11-27Added test for `get_duration_from_expiry()`Gravatar Shirayuki Nekomata-0/+17
2019-11-27Fixed TypeError raised by substracting offset-naive and offset-aware datetime...Gravatar Shirayuki Nekomata-1/+1
2019-11-27Implemented `get_duration_from_expiry()` which call `get_duration()` for `exp...Gravatar Shirayuki Nekomata-0/+18
2019-11-27Added pytest for `get_duration()`Gravatar Shirayuki Nekomata-0/+17
2019-11-27Implemented `get_duration()` for `bot.utils.time`Gravatar Shirayuki Nekomata-1/+35
2019-11-25Make requested tweaks: Use URL constant from constants.py, re-add try/except ...Gravatar Deniz-15/+17
2019-11-25Update PASTE_URL constant to be pydis instead of pythondiscordGravatar Deniz-1/+1
2019-11-25Change order of importsGravatar Deniz-1/+1
2019-11-25Forgot the word 'hey'Gravatar Deniz-1/+1
2019-11-25Update antimalware.py to be more consistent with other information messages (...Gravatar Deniz-24/+20
2019-11-19Relock to d.py 1.2.5 due to API breaking change for emoji.Gravatar scragly-80/+95
2019-11-16Apply suggestions from code reviewGravatar Sebastiaan Zeeff-4/+3
2019-11-16Renamed variables to be more explicit, added type hinting for `content_before...Gravatar Shirayuki Nekomata-24/+24
2019-11-15group and order constantsGravatar Numerlor-3/+5
2019-11-15Add variable info after comment was deletedGravatar Numerlor-1/+1
2019-11-15join extra newlineGravatar Numerlor-2/+1
2019-11-15Add unit tests with full coverage for `bot.cogs.duck_pond`Gravatar Sebastiaan Zeeff-159/+490
2019-11-15Add MockAsyncWebhook to mock `discord.Webhook` objectsGravatar Sebastiaan Zeeff-0/+21
2019-11-15Adjust MockReaction for new AsyncIteratorMock protocolGravatar Sebastiaan Zeeff-3/+1
2019-11-15Add MockUser to mock `discord.User` objectsGravatar Sebastiaan Zeeff-0/+19
2019-11-15Add `return_value` support and assertions to AsyncIteratorMockGravatar Sebastiaan Zeeff-4/+54
2019-11-15Move payload checks to start of DuckPond.on_raw_reaction_addGravatar Sebastiaan Zeeff-7/+7
2019-11-15Refactor DuckPond msg relay to separate methodGravatar Sebastiaan Zeeff-29/+33
2019-11-15Check only for bot's green checkmark in DuckPondGravatar Sebastiaan Zeeff-4/+5
2019-11-14Add MockAttachment type and attachments default for MockMessageGravatar Sebastiaan Zeeff-1/+16
2019-11-14Add bot=False default value to MockMemberGravatar Sebastiaan Zeeff-1/+1
2019-11-14Condensed logic, now only check for `add` `remove` `same` diff_type only.Gravatar Shirayuki Nekomata-8/+6