hebdobot/tests/test_aliases.py

10 lines
291 B
Python
Raw Normal View History

2024-01-11 08:17:25 +01:00
from bot.review.aliases import Aliases
from tests.utils import bot, CHANNEL, OWNER, SENDER
def test_aliases(bot):
aliases = Aliases(bot.settings.USER_ALIASES)
assert aliases["Test"] == "Real Name"
assert aliases["TEST"] == "Real Name"
assert aliases["test"] == "Real Name"