mirror of
https://github.com/bellingcat/auto-archiver.git
synced 2026-06-11 12:48:28 +03:00
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:
1
tests/data/example_module/__init__.py
Normal file
1
tests/data/example_module/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from .example_module import ExampleModule
|
||||
10
tests/data/example_module/__manifest__.py
Normal file
10
tests/data/example_module/__manifest__.py
Normal 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"}
|
||||
},
|
||||
}
|
||||
4
tests/data/example_module/example_module.py
Normal file
4
tests/data/example_module/example_module.py
Normal file
@@ -0,0 +1,4 @@
|
||||
from auto_archiver.core.extractor import Extractor
|
||||
|
||||
class ExampleModule(Extractor):
|
||||
pass
|
||||
Reference in New Issue
Block a user