Fixes issue #6

This commit is contained in:
CasVT
2023-05-28 11:43:06 +02:00
parent c3ce909554
commit 29eba69f74
14 changed files with 535 additions and 264 deletions

View File

@@ -1,5 +1,4 @@
import unittest
from threading import Thread
from backend.reminders import filter_function, ReminderHandler
@@ -9,13 +8,6 @@ class Test_Reminder_Handler(unittest.TestCase):
instance = ReminderHandler(context)
self.assertIs(context, instance.context)
self.assertIsInstance(instance.thread, Thread)
self.assertFalse(instance.stop)
with self.assertRaises(RuntimeError):
instance.stop_handling()
self.assertTrue(instance.stop)
def test_filter_function(self):
p = {
'title': 'TITLE',