From f6d9b4dfa1193eeea6749bd5e59ccfab41c0abdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= Date: Sun, 30 Oct 2022 14:54:33 +0100 Subject: [PATCH] Add test for checking if send_to_discord is in main --- tests/test_main.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/test_main.py diff --git a/tests/test_main.py b/tests/test_main.py new file mode 100644 index 0000000..b04e91c --- /dev/null +++ b/tests/test_main.py @@ -0,0 +1,8 @@ +from discord_reminder_bot import main + + +def test_if_send_to_discord_is_in_main(): + """ + send_to_discords needs to be in main for this program to work. + """ + assert hasattr(main, "send_to_discord")