cleanup runners
This commit is contained in:
parent
c1d8d6911c
commit
66c5c019b6
2 changed files with 3 additions and 6 deletions
|
|
@ -1,10 +1,6 @@
|
||||||
from pytest_abra import Runner, Test
|
from pytest_abra import Runner, Test
|
||||||
|
|
||||||
|
|
||||||
def condition_always_false(env_config: dict[str, str]) -> bool:
|
|
||||||
return False
|
|
||||||
|
|
||||||
|
|
||||||
class RunnerNextcloud(Runner):
|
class RunnerNextcloud(Runner):
|
||||||
env_type = "nextcloud"
|
env_type = "nextcloud"
|
||||||
dependencies = ["authentik"]
|
dependencies = ["authentik"]
|
||||||
|
|
|
||||||
|
|
@ -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", ""):
|
if "de" in env_config.get("LOCALE", ""):
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue