Skip to content

Commit 95e91e9

Browse files
fix
1 parent a9163ae commit 95e91e9

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tests/test_config.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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
(

0 commit comments

Comments
 (0)