various #16
1 changed files with 5 additions and 4 deletions
|
|
@ -1,11 +1,12 @@
|
||||||
from pytest_abra import ConditionArgs, Runner, Test
|
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
|
env_config = args.env_config
|
||||||
if "de" in env_config.get("LOCALE", ""):
|
if "LOCALE" in env_config:
|
||||||
return True
|
return True
|
||||||
return False
|
else:
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
class RunnerWordpress(Runner):
|
class RunnerWordpress(Runner):
|
||||||
|
|
@ -17,5 +18,5 @@ class RunnerWordpress(Runner):
|
||||||
]
|
]
|
||||||
tests = [
|
tests = [
|
||||||
# Test(test_file="test_wordpress_receive_email.py", prevent_skip=True),
|
# 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