A live bird collage card for your Home Assistant dashboard.
Move notifications utility into script.utils
Joe Weiss75a13f80d3ff
diff --git a/scripts/server.py b/scripts/server.pyindex c7e5ffe3..239432f5 100755--- a/scripts/server.py+++ b/scripts/server.py@@ -14,7 +14,7 @@ import socketimport threadingimport os-from notifications import sendAppriseNotifications+from utils.notifications import sendAppriseNotificationsfrom utils.parse_settings import config_to_settingsos.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'diff --git a/scripts/notifications.py b/scripts/utils/notifications.pysimilarity index 100%rename from scripts/notifications.pyrename to scripts/utils/notifications.pydiff --git a/tests/test_apprise_notifications.py b/tests/test_apprise_notifications.pyindex b2c53007..b17c3896 100644--- a/tests/test_apprise_notifications.py+++ b/tests/test_apprise_notifications.py@@ -2,7 +2,7 @@ import osimport sqlite3import pytest-from scripts.notifications import sendAppriseNotifications+from scripts.utils.notifications import sendAppriseNotificationsfrom datetime import datetime, timedeltadef create_test_db(db_file):@@ -38,8 +38,9 @@ def clean_up_after_each_test():yieldos.remove("test.db")+def test_notifications(mocker):- notify_call = mocker.patch('scripts.notifications.notify')+ notify_call = mocker.patch('scripts.utils.notifications.notify')create_test_db("test.db")settings_dict = {"APPRISE_NOTIFICATION_TITLE": "New backyard bird!",