Move notifications utility into script.utils

This commit is contained in:
Joe Weiss
2022-06-23 09:11:55 -04:00
parent cfb3baf3cd
commit 75a13f80d3
3 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -2,7 +2,7 @@ import os
import sqlite3
import pytest
from scripts.notifications import sendAppriseNotifications
from scripts.utils.notifications import sendAppriseNotifications
from datetime import datetime, timedelta
def create_test_db(db_file):
@@ -38,8 +38,9 @@ def clean_up_after_each_test():
yield
os.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!",