aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2022-07-16Use interaction.defer for snekbox version switch buttonGravatar Chris Lovering-5/+11
This is so that we do not need to spawn the run_job call in a seperate task. This also wraps interaction.message.delete() in a NotFound suppress to cover the case where a user re-runs code and very quickly clicks the button. The log arg on send_job will stop the actual job from running in this case.
2022-07-16Move snekbox lock error handling to a try/exceptGravatar Chris Lovering-2/+9
The cog_command_error isn't hit when the run_job function is called from the button interaction, this means if the lock error is raiseed, it doees not get handled.
2022-07-16Infer the snekbox invoker from contextGravatar Chris Lovering-4/+3
Rather than passing around superfluous variables.
2022-07-16Use generic views from bot0core for snekboxGravatar Chris Lovering-135/+1192
2022-07-16Update snekbox tests to reflect current behaviourGravatar Chris Lovering-23/+37
2022-07-16Allow users to eval code in either 3.11 or 3.10Gravatar Chris Lovering-29/+135
To do this we need to track, for each user, the active eval's code, python version and response message. This is because a button press can now also trigger a job to continue. If we did not track these, then editing your own code and then re-evaluating it would trigger the wait_fors in continue_job for each time you pressed the button to change languages. Co-authored-by: Mark <[email protected]>
2022-07-16Add required config and constants for snekbox 3.11Gravatar Chris Lovering-0/+14
2022-07-12Add revival of code role to self-assignableGravatar Cam Caswell-0/+3
2022-07-12Fix wrong var name in regex tagGravatar Boris Muratov-2/+2
2022-07-11Add Aliases for Tags Support (#2213)Gravatar Janine vN-1/+11
Also added aliases for the f-string tag and the "minusmpip"
2022-07-10Limit the ext cog to 1 action at a time (#2205)Gravatar ChrisJL-15/+26
2022-07-09Bump urllib3 from 1.24.3 to 1.26.5 (#2210)Gravatar dependabot[bot]-18/+10
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-09Bump lxml from 4.8.0 to 4.9.1 (#2208)Gravatar dependabot[bot]-1236/+100
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-09Bump requests from 2.15.1 to 2.20.0 (#2202)Gravatar dependabot[bot]-14/+32
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Xithrius <[email protected]>