Skip to content

Commit f21930b

Browse files
fix another message
1 parent 77972a3 commit f21930b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ def test_invalid_discord_bot_token(self, invalid_discord_bot_token: str) -> None
495495
os.environ["DISCORD_BOT_TOKEN"] = invalid_discord_bot_token
496496

497497
with pytest.raises(
498-
ImproperlyConfiguredError, match=INVALID_DISCORD_BOT_TOKEN_MESSAGE
498+
ImproperlyConfiguredError, match=re.escape(INVALID_DISCORD_BOT_TOKEN_MESSAGE)
499499
):
500500
RuntimeSettings._setup_discord_bot_token()
501501

@@ -2348,7 +2348,7 @@ def test_invalid_statistics_days(self, invalid_statistics_days: str) -> None:
23482348
def test_too_small_statistics_days(self, too_small_statistics_days: str) -> None:
23492349
"""Test that an error is raised when a too small `STATISTICS_DAYS` is provided."""
23502350
TOO_SMALL_STATISTICS_DAYS_MESSAGE: Final[str] = (
2351-
"STATISTICS_DAYS cannot be less than or equal to 1 day"
2351+
"STATISTICS_DAYS cannot be less than 1 day"
23522352
)
23532353

23542354
RuntimeSettings: Final[type[Settings]] = config._settings_class_factory()

0 commit comments

Comments
 (0)