fix: apply ruff format to step definitions file
CI / helm (pull_request) Successful in 1m4s
CI / build (pull_request) Successful in 2m3s
CI / push-validation (pull_request) Successful in 2m12s
CI / lint (pull_request) Successful in 2m34s
CI / typecheck (pull_request) Successful in 2m49s
CI / quality (pull_request) Successful in 2m51s
CI / security (pull_request) Successful in 2m56s
CI / integration_tests (pull_request) Successful in 4m40s
CI / unit_tests (pull_request) Successful in 6m10s
CI / docker (pull_request) Successful in 1m35s
CI / coverage (pull_request) Successful in 11m8s
CI / status-check (pull_request) Successful in 3s
CI / helm (pull_request) Successful in 1m4s
CI / build (pull_request) Successful in 2m3s
CI / push-validation (pull_request) Successful in 2m12s
CI / lint (pull_request) Successful in 2m34s
CI / typecheck (pull_request) Successful in 2m49s
CI / quality (pull_request) Successful in 2m51s
CI / security (pull_request) Successful in 2m56s
CI / integration_tests (pull_request) Successful in 4m40s
CI / unit_tests (pull_request) Successful in 6m10s
CI / docker (pull_request) Successful in 1m35s
CI / coverage (pull_request) Successful in 11m8s
CI / status-check (pull_request) Successful in 3s
This commit is contained in:
@@ -31,7 +31,7 @@ VALID_ULID_C = "01ARZ3NDEKTSV4XXFFJFRC889C"
|
||||
# ────────────────────────────────────────────────────────────
|
||||
|
||||
|
||||
@given('the plan tree contains 1 node(s)')
|
||||
@given("the plan tree contains 1 node(s)")
|
||||
def step_plan_tree_1_node(ctx: Context) -> None:
|
||||
"""Create a single-node plan tree."""
|
||||
ctx.tree_nodes = [
|
||||
@@ -45,7 +45,7 @@ def step_plan_tree_1_node(ctx: Context) -> None:
|
||||
]
|
||||
|
||||
|
||||
@given('the plan tree contains 5 node(s)')
|
||||
@given("the plan tree contains 5 node(s)")
|
||||
def step_plan_tree_5_nodes(ctx: Context) -> None:
|
||||
"""Create a 5-node plan tree."""
|
||||
ctx.tree_nodes = [
|
||||
@@ -61,7 +61,7 @@ def step_plan_tree_5_nodes(ctx: Context) -> None:
|
||||
]
|
||||
|
||||
|
||||
@given('the plan tree contains 20 node(s)')
|
||||
@given("the plan tree contains 20 node(s)")
|
||||
def step_plan_tree_20_nodes(ctx: Context) -> None:
|
||||
"""Create a 20-node plan tree."""
|
||||
ctx.tree_nodes = [
|
||||
@@ -354,37 +354,49 @@ def step_validate_structured(ctx: Context) -> None:
|
||||
ctx.validation_result = validate_structured_output(o)
|
||||
|
||||
|
||||
@given('I have a structured output with "command" set to agents plan list (and all other required fields present)')
|
||||
@given(
|
||||
'I have a structured output with "command" set to agents plan list (and all other required fields present)'
|
||||
)
|
||||
def step_structured_output_command(ctx: Context) -> None:
|
||||
o = _ensure_struct_output(ctx)
|
||||
o["command"] = "agents plan list"
|
||||
|
||||
|
||||
@given('I have a structured output with "session_id" set to 01ARZ3NDEKTSV4XXFFJFRC889A (and all other required fields present)')
|
||||
@given(
|
||||
'I have a structured output with "session_id" set to 01ARZ3NDEKTSV4XXFFJFRC889A (and all other required fields present)'
|
||||
)
|
||||
def step_structured_output_session_id(ctx: Context) -> None:
|
||||
o = _ensure_struct_output(ctx)
|
||||
o["session_id"] = "01ARZ3NDEKTSV4XXFFJFRC889A"
|
||||
|
||||
|
||||
@given('I have a structured output with "status" set to ok (and all other required fields present)')
|
||||
@given(
|
||||
'I have a structured output with "status" set to ok (and all other required fields present)'
|
||||
)
|
||||
def step_structured_output_status_ok(ctx: Context) -> None:
|
||||
o = _ensure_struct_output(ctx)
|
||||
o["status"] = "ok"
|
||||
|
||||
|
||||
@given('I have a structured output with "exit_code" set to 0 (and all other required fields present)')
|
||||
@given(
|
||||
'I have a structured output with "exit_code" set to 0 (and all other required fields present)'
|
||||
)
|
||||
def step_structured_output_exit_code_0(ctx: Context) -> None:
|
||||
o = _ensure_struct_output(ctx)
|
||||
o["exit_code"] = 0
|
||||
|
||||
|
||||
@given('I have a structured output with "status" set to "running" (and all other required fields present)')
|
||||
@given(
|
||||
'I have a structured output with "status" set to "running" (and all other required fields present)'
|
||||
)
|
||||
def step_structured_output_status_running(ctx: Context) -> None:
|
||||
o = _ensure_struct_output(ctx)
|
||||
o["status"] = "running"
|
||||
|
||||
|
||||
@given('I have a structured output with "exit_code" set to "-1" (and all other required fields present)')
|
||||
@given(
|
||||
'I have a structured output with "exit_code" set to "-1" (and all other required fields present)'
|
||||
)
|
||||
def step_structured_output_exit_code_neg1(ctx: Context) -> None:
|
||||
o = _ensure_struct_output(ctx)
|
||||
o["exit_code"] = -1
|
||||
|
||||
Reference in New Issue
Block a user