aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2020-02-26Disable TRACE logging for Sentry breadcrumbs.Gravatar Joseph-1/+1
2020-02-26Added DMs ignoring to antimalware checkGravatar ks123-1/+2
2020-02-26Fix comparison operator when checking token expiration.Gravatar Numerlor-1/+1
With `<` the check only went through when the token was already expired, making revoking redundant; and didn't go through when the token still had some time before expiration.
2020-02-26Added to AntiMalware staff ignore check.Gravatar Karlis. S-1/+5
2020-02-26Check for falsy values instead of ``""` and `None` explicitly.Gravatar Numerlor-2/+1
After the change to also check empty strings to avoid unucessary requests, it is no longer necessary to do an explicit value check, as the only values that can come from the .env file are `None` and strings Co-authored-by: Karlis S <[email protected]>
2020-02-26Specify the logged time is in UTC.Gravatar Numerlor-1/+1
2020-02-26Create task for `revoke_access_token` when unloading cog to ensure it's ↵Gravatar Numerlor-1/+1
executed.
2020-02-26Make sure token exists before checking its expiration.Gravatar Numerlor-1/+1
Without the check and an invalid token, an AttributeError is raised; blocking the relevant ClientError from being raised in `get_access_token`.
2020-02-26Check for empty strings alongside None before loading cog.Gravatar Numerlor-1/+2
Docker fetches values from the .env itself and defaults to "" instead of None, needing to do invalid access token requests before unloading itself.
2020-02-25Restyle if body to include the error instead of adding the cog.Gravatar Numerlor-3/+3
2020-02-25Fix `__iter__` for classes without subsections.Gravatar Numerlor-2/+3
The previous implementation assumed the config class was a subsection, failing with a KeyError if it wasn't one. Co-authored-by: kwzrd <[email protected]>
2020-02-25Assign created task to a variable.Gravatar Numerlor-1/+1
Co-authored-by: SebastiaanZ <[email protected]>
2020-02-25Wait for available guild instead of bot startup.Gravatar Numerlor-1/+1
Co-authored-by: SebastiaanZ <[email protected]>
2020-02-24Do not attempt to load Reddit cog when environment variables are not provided.Gravatar Numerlor-1/+4
When environment variables weren't provided; the cog attempted to create a BasicAuth object with None as values resulting in an exception before the event loop was started and a subsequent crash.
2020-02-24Remove unused `chunks` function and its tests.Gravatar Numerlor-26/+1
The function was only used in the since removed `Events` cog.
2020-02-24Change docstring mood.Gravatar Numerlor-1/+1
2020-02-24Change warning text.Gravatar Numerlor-1/+1
2020-02-24Add ConfigVerifier cog.Gravatar Numerlor-0/+41
Adds ConfigVerifier which verifies channels when loaded.
2020-02-24Implement `__iter__` on constants YAMLGetter.Gravatar Numerlor-0/+4
Python tries to fall back on passing indices to `__getitem__` without iter implemented; failing on the first line.
2020-02-23Sync: code style refactoringGravatar MarkKoz-7/+10
* Convert diff namedtuple to dict outside the dict comprehension * Define long condition as a boolean instead of in the if statement * Pass role and user dicts to aiohttp normally instead of unpacking
2020-02-23Reminders: don't cancel task if reminder is invalid when reschedulingGravatar MarkKoz-6/+11
If a reminder is invalid, it won't get rescheduled. Therefore, there wouldn't exist a task to cancel and it'd raise a warning. Fixes BOT-1C
2020-02-23Add Sentdex server to whitelistGravatar Leon Sandøy-0/+1
2020-02-24Change verification post log level to info, tidy code.Gravatar scragly-14/+13
2020-02-24Reduce log level of tag cooldown notice.Gravatar scragly-2/+4
2020-02-23Remove call to delete reminder, as ensure method already does it.Gravatar scragly-1/+0
2020-02-23Check reminder user and channel before send and schedule.Gravatar scragly-17/+38
2020-02-23Don't log exception traceback on Forbidden for welcomes.Gravatar scragly-12/+9
2020-02-23Don't set project log level so it uses root level.Gravatar scragly-1/+1
2020-02-23Define `_count` in `__init__`.Gravatar scragly-0/+1
2020-02-23Suppress NotFound on react clear, tidy imports.Gravatar scragly-18/+21
2020-02-21Change defcon log levels from warning to infoGravatar Joseph Banks-2/+2
2020-02-21Enable logging warnings to SentryGravatar Joseph Banks-3/+12
2020-02-21Bot: send empty cache warning to a webhookGravatar MarkKoz-3/+12
This is more visible than it would be if it was only logged. * Add a webhook for the dev-log channel to constants
2020-02-21Attach jump_to url to the eventGravatar Joseph Banks-0/+8
2020-02-21Use push_scope instead of configure_scopeGravatar Joseph Banks-2/+2
2020-02-21Use log.error instead of capture_exceptionGravatar Joseph Banks-2/+2
2020-02-21Remove AIOHTTP integration from Sentry since it is intended for AIOHTTP servers.Gravatar Joseph Banks-3/+1
2020-02-21Remove tests for custom bot logGravatar Joseph Banks-62/+2
2020-02-21Remove the space that makes the test failGravatar Deniz-1/+1
2020-02-21Use the code provided by sco1 to fix the checks failing.Gravatar Deniz-5/+10
2020-02-21Add basic sentry usage for command errors giving user information and ↵Gravatar Joseph Banks-85/+10
command context.
2020-02-21Attach extra information on a command errorGravatar Joseph Banks-1/+13
2020-02-21Set BOT_SENTRY_DSN environment variable for testsGravatar Joseph Banks-1/+1
2020-02-21Implement basic Sentry SDK usageGravatar Joseph Banks-2/+14
2020-02-20Update flake8-annotations to v2.0.Gravatar scragly-10/+51
2020-02-20Change to explicit logs, remove logmatic.Gravatar scragly-160/+76
2020-02-19API: add comment explaining class attributesGravatar MarkKoz-0/+2
Explain changes caused by 22a55534ef13990815a6f69d361e2a12693075d5.
2020-02-19Sync: add confirmation timeout and max diff to configGravatar MarkKoz-16/+24
2020-02-19Moderation: show avatar in infraction deactivation logGravatar MarkKoz-0/+5
2020-02-17Pagination migrations - Emoji Data Structure ModifiedGravatar F4zi-1/+1
Changed the pagination emoji collection from list to tuple This change was suggested since this collection is constant