diff --git a/tests/test_watcher.py b/tests/test_watcher.py index 46c5ef9..a094492 100644 --- a/tests/test_watcher.py +++ b/tests/test_watcher.py @@ -17,7 +17,9 @@ class TestIgnoredDirs: old = os.environ.pop("OBSIGATE_IGNORED_DIRS", None) try: import importlib + import backend.indexer import backend.watcher + importlib.reload(backend.indexer) importlib.reload(backend.watcher) dirs = backend.watcher.IGNORED_DIRS assert ".obsidian" in dirs @@ -31,7 +33,9 @@ class TestIgnoredDirs: os.environ["OBSIGATE_IGNORED_DIRS"] = ".custom1,.custom2" try: import importlib + import backend.indexer import backend.watcher + importlib.reload(backend.indexer) importlib.reload(backend.watcher) dirs = backend.watcher.IGNORED_DIRS assert ".custom1" in dirs