18 lines
437 B
Python
18 lines
437 B
Python
# Copyright (c) 20.09.25, 16:22. a.jurcenko@inproduct.de
|
|
import unittest
|
|
from task import ConsolePrintTask
|
|
from events import DirectoryWatchEvent
|
|
|
|
|
|
class TestEvent(unittest.TestCase):
|
|
|
|
|
|
def setUp(self):
|
|
pass
|
|
def tearDown(self):
|
|
pass
|
|
|
|
def test_task(self):
|
|
dwe = DirectoryWatchEvent(task=ConsolePrintTask(name='test'), directory='/home/alex/test')
|
|
while True:
|
|
dwe.check_conditions() |