aboutsummaryrefslogtreecommitdiffstats
path: root/bot/branding.py
diff options
context:
space:
mode:
authorGravatar kwzrd <[email protected]>2020-03-23 20:18:26 +0100
committerGravatar kwzrd <[email protected]>2020-03-24 20:29:33 +0100
commit51e3f49a7195640a7d9be919f6578864f2d74eca (patch)
tree388b6d5cb02ffc8261b5e23cf7718930970b74ad /bot/branding.py
parentDeseasonify: add `mock_in_debug` decorator (diff)
Deseasonify: mock expensive API calls in debug mode
The methods will pretend that the selected asset was uploaded successfully. This allows extensive testing of the branding manager without API abuse.
Diffstat (limited to 'bot/branding.py')
-rw-r--r--bot/branding.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bot/branding.py b/bot/branding.py
index 06f91a38..7ea76e43 100644
--- a/bot/branding.py
+++ b/bot/branding.py
@@ -110,6 +110,10 @@ class BrandingManager(commands.Cog):
rate-limits - the `apply` command should be used with caution. The `set` command can,
however, be used freely to 'preview' seasonal branding and check whether paths have been
resolved as appropriate.
+
+ While the bot is in debug mode, it will 'mock' asset uploads by logging the passed
+ download urls and pretending that the upload was successful. Make use of this
+ to test this cog's behaviour.
"""
current_season: t.Type[SeasonBase]