enable test_wordpress_localization
This commit is contained in:
parent
2b0a79f8f6
commit
0602899fca
1 changed files with 5 additions and 4 deletions
|
|
@ -1,10 +1,11 @@
|
|||
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
|
||||
else:
|
||||
return False
|
||||
|
||||
|
||||
|
|
@ -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"),
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue