File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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."""
You can’t perform that action at this time.
0 commit comments