Telethon unit tests + tidyup

This commit is contained in:
Patrick Robertson
2025-03-26 22:53:27 +04:00
parent 17d2d14680
commit 95ea9fb231
5 changed files with 68 additions and 16 deletions

View File

@@ -20,6 +20,14 @@ from auto_archiver.core.module import ModuleFactory
TESTS_TO_RUN_LAST = ["test_twitter_api_archiver"]
@pytest.fixture
def get_lazy_module():
def _get_lazy_module(module_name):
return ModuleFactory().get_module_lazy(module_name)
return _get_lazy_module
@pytest.fixture
def setup_module(request):
def _setup_module(module_name, config=None):