Use Ruff and fix all its warnings and errors
This commit is contained in:
@ -1,14 +1,11 @@
|
||||
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.
|
||||
"""
|
||||
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():
|
||||
"""
|
||||
send_to_user needs to be in main for this program to work.
|
||||
"""
|
||||
assert hasattr(main, "send_to_user")
|
||||
|
||||
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")
|
||||
|
Reference in New Issue
Block a user