diff --git a/tests/test_importers.py b/tests/test_importers.py index c286c6b90a6754758813739362ff4ee5b1207c2a..39c71df260a3c311973a930662771a05a1ff2f39 100644 --- a/tests/test_importers.py +++ b/tests/test_importers.py @@ -12,6 +12,8 @@ from import2ledger import errors, importers, strparse from . import Config, DATA_DIR class TestImporters: + FULL_CONFIG = Config({}) + with pathlib.Path(DATA_DIR, 'imports.yml').open() as yaml_file: test_data = yaml.load(yaml_file) for test in test_data: @@ -46,6 +48,6 @@ class TestImporters: assert actual == expected def test_loader(self): - all_importers = list(importers.load_all()) + all_importers = {type(importer) for importer in importers.load_all(self.FULL_CONFIG)} for test in self.test_data: assert test['importer'] in all_importers