Add more steps

This commit is contained in:
Fang-Pen Lin
2025-10-27 12:10:33 -07:00
parent 375a74fc26
commit d3539e1d3a
3 changed files with 24 additions and 8 deletions

View File

@@ -1,5 +1,14 @@
import os
import httpx
from behave.runner import Context
BASE_URL = os.environ.get("INFISICAL_API_URL", "http://localhost:8080")
AUTH_TOKEN = os.environ.get("INFISICAL_TOKEN")
def before_all(context: Context):
context.vars = {}
context.http_client = httpx.Client(
base_url=BASE_URL, headers={"Authorization": f"Bearer {AUTH_TOKEN}"}
)