Skip to content

Commit 9d16a10

Browse files
Fix variable name
1 parent 6e7938d commit 9d16a10

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_config.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -646,17 +646,17 @@ class TestSetupDiscordGuildID:
646646
ids=[f"case_{i}" for i in range(6)],
647647
)
648648
def test_setup_discord_guild_id_successful(self, test_discord_guild_id: str) -> None:
649-
"""Test that the given `DISCORD_GUILD_ID` is used when a valid one is provided."""
649+
"""Test that the given `_DISCORD_MAIN_GUILD_ID` is used when a valid one is provided."""
650650
RuntimeSettings: Final[type[Settings]] = config._settings_class_factory() # noqa: SLF001
651651

652-
with EnvVariableDeleter("DISCORD_GUILD_ID"):
653-
os.environ["DISCORD_GUILD_ID"] = test_discord_guild_id
652+
with EnvVariableDeleter("_DISCORD_MAIN_GUILD_ID"):
653+
os.environ["_DISCORD_MAIN_GUILD_ID"] = test_discord_guild_id
654654

655655
RuntimeSettings._setup_discord_guild_id() # noqa: SLF001
656656

657657
RuntimeSettings._is_env_variables_setup = True # noqa: SLF001
658658

659-
assert RuntimeSettings()["DISCORD_GUILD_ID"] == int(test_discord_guild_id.strip())
659+
assert RuntimeSettings()["_DISCORD_MAIN_GUILD_ID"] == int(test_discord_guild_id.strip())
660660

661661
def test_missing_discord_guild_id(self) -> None:
662662
"""Test that an error is raised when no `DISCORD_GUILD_ID` is provided."""

0 commit comments

Comments
 (0)