File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -545,7 +545,7 @@ def test_missing_discord_log_channel_webhook_url(self) -> None:
545545 """Test that no error occurs when no `DISCORD_LOG_CHANNEL_WEBHOOK_URL` is provided."""
546546 RuntimeSettings : Final [type [Settings ]] = config ._settings_class_factory ()
547547
548- with EnvVariableDeleter ("DISCORD_LOG_CHANNEL_WEBHOOK_URL" ), EnvVariableDeleter ( "DISCORD_BOT_TOKEN" ) :
548+ with EnvVariableDeleter ("DISCORD_LOG_CHANNEL_WEBHOOK_URL" ):
549549 try :
550550 RuntimeSettings ._setup_discord_log_channel_webhook ()
551551 except ImproperlyConfiguredError :
@@ -555,7 +555,6 @@ def test_missing_discord_log_channel_webhook_url(self) -> None:
555555
556556 assert not RuntimeSettings ()["DISCORD_LOG_CHANNEL_WEBHOOK_URL" ]
557557
558-
559558 @pytest .mark .parametrize (
560559 "invalid_discord_log_channel_url" ,
561560 (
You can’t perform that action at this time.
0 commit comments