Move settings to a function and add tests

This commit is contained in:
2025-01-22 17:45:29 +01:00
parent d5926e5cb9
commit 07bc11fbff
11 changed files with 508 additions and 70 deletions

13
tests/test_main.py Normal file
View File

@ -0,0 +1,13 @@
from __future__ import annotations
from discord_reminder_bot import main
def test_if_send_to_discord_is_in_main() -> None:
"""send_to_discords needs to be in main for this program to work."""
assert hasattr(main, "send_to_discord")
def test_if_send_to_user_is_in_main() -> None:
"""send_to_user needs to be in main for this program to work."""
assert hasattr(main, "send_to_user")