diff options
author | Frederick Yin <fkfd@fkfd.me> | 2022-02-19 17:46:26 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@fkfd.me> | 2022-02-19 17:46:26 +0800 |
commit | c1055feea07781fb33624b278e2b21811718aa19 (patch) | |
tree | fbb510701630aa7a9d8ae9e2a83e42ae103d541e /jimbrella/test/test_routine.py | |
parent | 92ca54b191811df4b6e51f7ef06e453dcf1ac71e (diff) |
Adapt test suite to new logger
Diffstat (limited to 'jimbrella/test/test_routine.py')
-rw-r--r-- | jimbrella/test/test_routine.py | 7 |
1 files changed, 3 insertions, 4 deletions
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) |