put RUNNER_DICT in runner.py

This commit is contained in:
Daniel 2023-12-04 15:27:05 +01:00
parent 8835243577
commit a2f2876e45

View file

@ -7,6 +7,17 @@ from dotenv import dotenv_values
from loguru import logger
from src.dirmanager import DirManager
from src.tests_authentik.runner_authentik import RunnerAuthentik
from src.tests_nextcloud.runner_nextcloud import RunnerNextcloud
from src.tests_wordpress.runner_wordpress import RunnerWordpress
# Register all runners here. Each .env file with TYPE=authentik will be run with RunnerAuthentik
RUNNER_DICT: dict[str, type["Runner"]] = {
"authentik": RunnerAuthentik,
"wordpress": RunnerWordpress,
"nextcloud": RunnerNextcloud,
}
@dataclass