clearer code

This commit is contained in:
Daniel 2023-12-07 23:18:49 +01:00
parent a69b5e2da7
commit 0cd2cd5add

View file

@ -2,8 +2,7 @@ from pytest_abra import Runner, Test
def condition_has_locale(env_config: dict[str, str]) -> bool:
if "LOCALE" in env_config:
if "de" in env_config["LOCALE"]:
if "de" in env_config.get("LOCALE", ""):
return True
return False