mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-10 19:28:51 +00:00
17 lines
397 B
Python
17 lines
397 B
Python
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 = {
|
|
"BASE_URL": BASE_URL,
|
|
}
|
|
context.http_client = httpx.Client(
|
|
base_url=BASE_URL, # headers={"Authorization": f"Bearer {AUTH_TOKEN}"}
|
|
)
|