aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2022-08-13Updated infractions display for updatesGravatar ionite34-23/+59
- Added new infraction delta calculations to updated infractions. - Updates of infraction durations now also update the `last_applied` field. - `inserted_at` is now sent by the bot client to denote the original unmodified infraction application time
2022-08-13Corrected test use of utcnowGravatar ionite34-1/+1
Corrected test case to use `datetime.utcnow()` to be consistent with target
2022-08-06Updated previous tests to use subset methodGravatar ionite34-7/+5
2022-08-06Refactored test to not use datetime patchGravatar ionite34-8/+11
- Used new method of dict subset comparison instead of datetime patching for better compat. with argument types
2022-08-06Removed `inserted_at` fallbackGravatar ionite34-13/+5
Given API updates, the fallback is not needed
2022-08-06Changed datetime.now to arrow.utcnowGravatar ionite34-2/+2
- Used arrow.utcnow to reduce complexity and import
2022-08-01Infraction duration fallback if no `last_applied` fieldGravatar ionite34-2/+13
2022-08-01Added microsecond rounding for `humanize_delta`Gravatar ionite34-1/+16
2022-07-31Added new expiry usage to applyGravatar ionite34-1/+1
- Added new usage of `last_applied` time for duration calculation in `apply_infraction`
2022-07-28Use `last_applied` to display durationGravatar ionite34-1/+2
2022-07-28Correct last_applied formattingGravatar ionite34-1/+1
2022-07-28Fixed testsGravatar ionite34-6/+7
- Corrected datetime patching
2022-07-28Updated ban command docstringGravatar ionite34-2/+4
- Updated docstring to be more explicit on parameter fields
2022-07-28Updated parameter namesGravatar ionite34-5/+5
- Changed `duration` parameter names to `duration_or_expiry` to more accurately reflect options for help
2022-07-28Added isoformat for test payloadGravatar ionite34-1/+1
2022-07-28Fixed test patchesGravatar ionite34-15/+17
2022-07-28Updated testsGravatar ionite34-17/+23
- Refactored tests for new time duration arguments
2022-07-28Ran isort on importsGravatar ionite34-2/+2
2022-07-28Refactoring for DurationOrExpiryGravatar ionite34-25/+33
2022-07-28Added `DurationOrExpiry` type unionGravatar ionite34-0/+1
2022-07-23Update `!modpings off` confirmation to use a discord timestamp.Gravatar Izan-8/+9
2022-07-21Start 3.11 snekbox container by defaultGravatar Chris Lovering-2/+2
Since snekbox uses 3.11 by default, it makes sense for this one to be started by default, and the 3.10 container to be opt-in.
2022-07-21Update snekbox tests to expect new outputGravatar Chris Lovering-11/+13
2022-07-21Include what version of Python was used in snekbox output.Gravatar Chris Lovering-6/+6
2022-07-21Use the view clear on timeout feature from bot-core in snekboxGravatar Chris Lovering-9/+7
This will mean the buttons will be cleared from the response on interaction timeout.
2022-07-17fix(tags/print-return): use the raw GitHub URL for the GIFGravatar Siddhesh Mhadnak-1/+1
As mentioned in the previous commit, using the raw GitHub URL would be more reliable than a Discord CDN URL.