summaryrefslogtreecommitdiff
path: root/jimbrella
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2021-10-22 23:28:18 +0800
committerFrederick Yin <fkfd@fkfd.me>2021-10-22 23:28:18 +0800
commite887f76b0c10eeec8298b2a49c9ba0f29b678495 (patch)
tree7b1b844a6a249e1fdbc23d0fcf2628603295f1ac /jimbrella
parent64979b1dd30ba1eed531b071aaf74ce1aaa1d511 (diff)
Test process_overdue
Diffstat (limited to 'jimbrella')
-rw-r--r--jimbrella/test/test_routine.py5
1 files changed, 4 insertions, 1 deletions
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)