* turn repo into installable package (pip install -e .) * add hatchling build packend * call it pytest-abra * add pytest entrypoint, so that it gets loaded automatically if installed (and pytest is run) * make fixtures optional, so that pytest can still be used in other context * add cli script -> you can now directly run "pytest-abra" in console Reviewed-on: local-it-infrastructure/e2e_tests#9 Co-authored-by: Daniel <d.brummerloh@gmail.com> Co-committed-by: Daniel <d.brummerloh@gmail.com>
15 lines
384 B
Python
15 lines
384 B
Python
from pytest_abra.runner import Runner, Test
|
|
|
|
|
|
def condition_always_true(dotenv_config: dict[str, str]) -> bool:
|
|
return True
|
|
|
|
|
|
def condition_always_false(dotenv_config: dict[str, str]) -> bool:
|
|
return False
|
|
|
|
|
|
class RunnerAuthentik(Runner):
|
|
env_type = "authentik"
|
|
setups = [Test(test_file="setup_authentik.py")]
|
|
# tests = [Test(test_file="test_authentik_dummy.py")]
|