aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2022-09-17Use Python Poetry Base Action (#2277)Gravatar Hassan Abouelela-21/+3
2022-09-17Removed italics from the help command (#2272)Gravatar Mohammad Ibrahim-5/+5
* removed asterisk from embed description * removed italics from line 334, 375 and 415 * pagination.py, L239 added italics
2022-09-16Removed "redis_ready" from additional_spec_asyncs in MockBot (#2275)Gravatar Aleksey Zasorin-1/+1
The attribute was removed from Bot in fc05849
2022-09-14Update docstrings & comment.Gravatar Izan-17/+8
2022-09-13Specify the path for poetry venvsGravatar Chris Lovering-1/+2
Without this the venv would be created in /root/.cache and the nonn-root user that prod runs under would not have access to it.
2022-09-13Ignore mounted in-project venvs on startupGravatar Chris Lovering-1/+4
Poetry's virtualenvs.in-project config deafults to None, meaning it will use in-project venvs if it finds one, otherwise it will use the cache dir. In dev we mount the entire root project directory to /bot. This means if the host's venv in in the project dir, this will get mounted and prioritised by poetry run. If the host is on a non-linux OS this will cause poetry to fail to boot.
2022-09-12Don't use fake in-project venvs for poetryGravatar Chris Lovering-21/+13
Instead let poetry install the venv for the project in the right place, leading to a more 'traditional' poetry setup.
2022-09-11Bump poetry in Docker and lint to 1.2.0Gravatar Chris Lovering-1/+1
2022-09-11Use HassanAbouelela/setup-python for CIGravatar Chris Lovering-57/+5
2022-09-10Use venvs with poetry in DockerfileGravatar Chris Lovering-6/+16
This is required due to a regression in poetry, see https://github.com/HassanAbouelela/actions/pull/7
2022-09-10Fix error in help channels cog which assumed an embed would have a descriptionGravatar wookie184-1/+2
2022-08-28Remove unnecessary logginGravatar Juan Ignacio Battiston-2/+0
2022-08-19Duration for DM changed to Edited flagGravatar ionite34-10/+7
2022-08-19fix: data dictionary guarantees reason key existence if pardon reason existsGravatar Luna-0/+1
2022-08-18fix: remove chance of empty string overriding database infraction reasonGravatar Luna-1/+1
2022-08-18fix: don't include replied mentions in mention filter (#2017)Gravatar arl-12/+124
Co-authored-by: Izan <[email protected]> Co-authored-by: TizzySaurus <[email protected]> Co-authored-by: Xithrius <[email protected]>
2022-08-18fix: lint (again)Gravatar Luna-3/+3
2022-08-18fix: add check to prevent NoneType from passing into str concatenationGravatar Luna-4/+8
2022-08-18Check if channel.guild is NoneGravatar Dorukyum-1/+1
2022-08-18Made DM duration remaining optional with resendGravatar ionite34-6/+8
2022-08-18change: make unban require pardon reasonGravatar Luna-7/+1
2022-08-17add: test for reasoned and reasonless pardonsGravatar Luna-1/+7
2022-08-17fix: trailing whitespaceGravatar Luna-1/+1
2022-08-17fix: docstringsGravatar Luna-6/+7
2022-08-17fix: lintGravatar Luna-5/+23
2022-08-17feat: add reason argument to pardon commandsGravatar Luna-10/+24
2022-08-17fix: replace datetime.utcnow() with arrowGravatar dawnofmidnight-4/+4
2022-08-16Added article to automute messageGravatar ionite34-1/+1
2022-08-16Removed unused datetime importGravatar ionite34-1/+0
2022-08-16Updated 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-16Corrected test use of utcnowGravatar ionite34-1/+1
Corrected test case to use `datetime.utcnow()` to be consistent with target
2022-08-16Updated previous tests to use subset methodGravatar ionite34-7/+5
2022-08-16Refactored 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-16Removed `inserted_at` fallbackGravatar ionite34-13/+5
Given API updates, the fallback is not needed
2022-08-16Changed datetime.now to arrow.utcnowGravatar ionite34-2/+2
- Used arrow.utcnow to reduce complexity and import
2022-08-16Infraction duration fallback if no `last_applied` fieldGravatar ionite34-2/+13
2022-08-16Added microsecond rounding for `humanize_delta`Gravatar ionite34-1/+16
2022-08-16Added new expiry usage to applyGravatar ionite34-1/+1
- Added new usage of `last_applied` time for duration calculation in `apply_infraction`
2022-08-16Use `last_applied` to display durationGravatar ionite34-1/+2
2022-08-16Correct last_applied formattingGravatar ionite34-1/+1
2022-08-16Fixed testsGravatar ionite34-6/+7
- Corrected datetime patching
2022-08-16Updated ban command docstringGravatar ionite34-2/+4
- Updated docstring to be more explicit on parameter fields
2022-08-16Updated parameter namesGravatar ionite34-5/+5
- Changed `duration` parameter names to `duration_or_expiry` to more accurately reflect options for help
2022-08-16Added isoformat for test payloadGravatar ionite34-1/+1
2022-08-16Fixed test patchesGravatar ionite34-15/+17
2022-08-16Updated testsGravatar ionite34-17/+23
- Refactored tests for new time duration arguments
2022-08-16Ran isort on importsGravatar ionite34-2/+2
2022-08-16Refactoring for DurationOrExpiryGravatar ionite34-25/+33
2022-08-16Added `DurationOrExpiry` type unionGravatar ionite34-0/+1
2022-08-16Added newlines and non-mentioned mod roleGravatar ionite34-4/+5