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:
646
646
ids = [f"case_{ i } " for i in range (6 )],
647
647
)
648
648
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."""
650
650
RuntimeSettings : Final [type [Settings ]] = config ._settings_class_factory () # noqa: SLF001
651
651
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
654
654
655
655
RuntimeSettings ._setup_discord_guild_id () # noqa: SLF001
656
656
657
657
RuntimeSettings ._is_env_variables_setup = True # noqa: SLF001
658
658
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 ())
660
660
661
661
def test_missing_discord_guild_id (self ) -> None :
662
662
"""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