From e887f76b0c10eeec8298b2a49c9ba0f29b678495 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Fri, 22 Oct 2021 23:28:18 +0800 Subject: Test process_overdue --- jimbrella/test/test_routine.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'jimbrella') diff --git a/jimbrella/test/test_routine.py b/jimbrella/test/test_routine.py index a3a5675..5a08fdf 100644 --- a/jimbrella/test/test_routine.py +++ b/jimbrella/test/test_routine.py @@ -4,7 +4,7 @@ import json import os import shutil from .jform_data import mock_jform_data -from ..routine import sync_database +from ..routine import sync_database, process_overdue from ..database import Database from ..jform import JForm from ..config import * @@ -54,5 +54,8 @@ db = Database(TEST_DATABASE_PATH) takeaway_jform = JForm("takeaway", "http://localhost:5001/takeaway", "/tmp") giveback_jform = JForm("giveback", "http://localhost:5001/giveback", "/tmp") sync_database(takeaway_jform, giveback_jform, db) +process_overdue(db) + +"""Cleanup""" os.remove(takeaway_jform._bookmark_fp) os.remove(giveback_jform._bookmark_fp) -- cgit v1.2.3