diff --git a/recipes/wordpress/tests_wordpress/runner_wordpress.py b/recipes/wordpress/tests_wordpress/runner_wordpress.py index 21cdeab..aef1273 100644 --- a/recipes/wordpress/tests_wordpress/runner_wordpress.py +++ b/recipes/wordpress/tests_wordpress/runner_wordpress.py @@ -1,11 +1,12 @@ from pytest_abra import ConditionArgs, Runner, Test -def condition_has_locale(args: ConditionArgs) -> bool: +def env_config_has_locale(args: ConditionArgs) -> bool: env_config = args.env_config - if "de" in env_config.get("LOCALE", ""): + if "LOCALE" in env_config: return True - return False + else: + return False class RunnerWordpress(Runner): @@ -17,5 +18,5 @@ class RunnerWordpress(Runner): ] tests = [ # Test(test_file="test_wordpress_receive_email.py", prevent_skip=True), - # Test(condition=condition_has_locale, test_file="test_wordpress_localization.py"), + Test(condition=env_config_has_locale, test_file="test_wordpress_localization.py"), ]