From 51e3f49a7195640a7d9be919f6578864f2d74eca Mon Sep 17 00:00:00 2001 From: kwzrd Date: Mon, 23 Mar 2020 20:18:26 +0100 Subject: 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. --- bot/branding.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bot/branding.py') 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] -- cgit v1.2.3