From c1055feea07781fb33624b278e2b21811718aa19 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Sat, 19 Feb 2022 17:46:26 +0800 Subject: Adapt test suite to new logger --- jimbrella/test/test_routine.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'jimbrella/test/test_routine.py') diff --git a/jimbrella/test/test_routine.py b/jimbrella/test/test_routine.py index b49ad28..89ae92e 100644 --- a/jimbrella/test/test_routine.py +++ b/jimbrella/test/test_routine.py @@ -8,7 +8,7 @@ from .jform_data import mock_jform_data from ..routine import sync_jform, process_overdue from ..umbrellas import Umbrellas from ..jform import JForm -from ..admin_log import AdminLog +from ..logger import Logger from ..config import config """Spin up a simple Flask app to mimic jForm.""" @@ -61,11 +61,10 @@ if __name__ == "__main__": db = Umbrellas(TEST_DATABASE_PATH) takeaway_jform = JForm("takeaway", "http://localhost:5001/takeaway", "/tmp") giveback_jform = JForm("giveback", "http://localhost:5001/giveback", "/tmp") - admin = AdminLog(TEST_ADMIN_LOG_PATH) """Simulate routine.""" - sync_jform(takeaway_jform, giveback_jform, db, admin) - process_overdue(db, admin) + sync_jform(takeaway_jform, giveback_jform, db) + process_overdue(db) """Cleanup""" os.remove(takeaway_jform._bookmark_fp) -- cgit v1.2.3