Tidy ups + unit tests:

1. Allow loading modules from --module_paths=/extra/path/here
2. Improved unit tests for module loading
3. Further small tidy ups/clean ups
This commit is contained in:
Patrick Robertson
2025-01-29 18:42:12 +01:00
parent dcd5576f29
commit 3d37c494aa
13 changed files with 216 additions and 81 deletions

View File

@@ -0,0 +1 @@
from .example_module import ExampleModule

View File

@@ -0,0 +1,10 @@
{
"name": "Example Module",
"type": ["extractor"],
"requires_setup": False,
"external_dependencies": {"python": ["loguru"]
},
"configs": {
"csv_file": {"default": "db.csv", "help": "CSV file name"}
},
}

View File

@@ -0,0 +1,4 @@
from auto_archiver.core.extractor import Extractor
class ExampleModule(Extractor):
pass