From 66c5c019b6868b8ad0d0ae11aacd969664a38372 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 8 Dec 2023 12:29:22 +0100 Subject: [PATCH] cleanup runners --- recipes/nextcloud/tests_nextcloud/runner_nextcloud.py | 4 ---- recipes/wordpress/tests_wordpress/runner_wordpress.py | 5 +++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/recipes/nextcloud/tests_nextcloud/runner_nextcloud.py b/recipes/nextcloud/tests_nextcloud/runner_nextcloud.py index 584239a..0cb466c 100644 --- a/recipes/nextcloud/tests_nextcloud/runner_nextcloud.py +++ b/recipes/nextcloud/tests_nextcloud/runner_nextcloud.py @@ -1,10 +1,6 @@ from pytest_abra import Runner, Test -def condition_always_false(env_config: dict[str, str]) -> bool: - return False - - class RunnerNextcloud(Runner): env_type = "nextcloud" dependencies = ["authentik"] diff --git a/recipes/wordpress/tests_wordpress/runner_wordpress.py b/recipes/wordpress/tests_wordpress/runner_wordpress.py index be7e86a..0eed24c 100644 --- a/recipes/wordpress/tests_wordpress/runner_wordpress.py +++ b/recipes/wordpress/tests_wordpress/runner_wordpress.py @@ -1,7 +1,8 @@ -from pytest_abra import Runner, Test +from pytest_abra import ConditionArgs, Runner, Test -def condition_has_locale(env_config: dict[str, str]) -> bool: +def condition_has_locale(args: ConditionArgs) -> bool: + env_config = args.env_config if "de" in env_config.get("LOCALE", ""): return True return False