aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2022-08-14revert bump to markdownify versionGravatar Chris Lovering-10/+14
The new versions introduce conversions which causes the doc command embed to be formatted improperly
2022-08-14Use RedisTestCase helper class for both Incidents and Silence test cases.Gravatar Chris Lovering-36/+6
2022-08-14Add a new test helper for managing redis sessionsGravatar Chris Lovering-0/+24
This helper ensures that a fresh RedisSession is given to each test case that inherits from it.
2022-08-14Bump bot-core to full 8.0.0 releaseGravatar Chris Lovering-8/+7
2022-08-14Remove unneeded N802 noqasGravatar Chris Lovering-5/+5
pep-naming now supports these functions being in camel case.
2022-08-14Directly return the RedisSession on connectionGravatar Chris Lovering-2/+1
2022-08-14noqa false-positive B023 instancesGravatar Chris Lovering-4/+4
This was a new lint rule added in the latest bugbear.
2022-08-14Stop creating futures in tests with no event loop runningGravatar Chris Lovering-6/+0
2022-08-14Add back a lock to DocRedisCache.set based on the DocItemGravatar Chris Lovering-0/+8
2022-08-14Update any calls to Redis 'iscan' to the new name 'scan_iter'Gravatar Chris Lovering-2/+2
2022-08-14Convert key expiries to integers before passing to RedisGravatar Chris Lovering-1/+1
If a float is given, Redis will assume the expiry is in milliseconds and must be multiplied by 1000. This is undesirable, as we are already passing the expiry in seconds.
2022-08-14Remove usages of the removed namespace_lock decoratorGravatar Chris Lovering-6/+1
2022-08-14No longer use the removed RedisSession connection objectGravatar Chris Lovering-51/+46
This has been abstracted away, the correct way to do this now is to directly access the client.
2022-08-14redis-py breaking changesGravatar Chris Lovering-5/+6
This commit resolves all the breaking changes from the aioredis -> redis-py migration.
2022-08-14Bump all deps to latestGravatar Chris Lovering-85/+62
2022-08-14Bump bot-core versionGravatar Chris Lovering-1216/+118
This bump comes with a move to redis-py over aioredis. As such, pin new transitive dependancies to exact versions.
2022-08-14Remove warnings in error handler testsGravatar Chris Lovering-56/+47
These warnings were caused by the setup coro from error_handler.py being imported directly, causing a warning about an un-awaited coro whenever the Cog was accessed from the same file.
2022-08-14Remove call to get_event_loop in testsGravatar Chris Lovering-3/+2
get_event_loop is deprecated as of 3.10 if there is no running loop.
2022-08-14Bump to Python 3.10Gravatar Chris Lovering-3/+3
2022-08-14Update the docker-compose snekbox dep for botGravatar Chris Lovering-1/+1
The bot service was still configured to depend on the snekbox service, even though this service is now optional, in favour of the snekbox-311 service.
2022-08-06Make reference message in reminders italic.Gravatar Izan-1/+1
2022-08-03Improved `purge` help messageGravatar ionite34-1/+1
2022-08-03Removed unused importGravatar ionite34-1/+1
2022-08-03Updated `purge` to require >1 usersGravatar ionite34-3/+9
2022-07-25Allow referencing message as argument to `!remind edit content`Gravatar Izan-11/+32
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.