fix(agent-evolution-pool-supervisor): Fix lint errors in BDD step definitions
- Remove unused imports (json, Dict, Optional) - Fix import sorting (I001 error) - Fix open() call to remove unnecessary mode argument - Replace fake assert True with meaningful assertions - Fix Behave parser type for label_name to handle "Type/Automation"
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
"""Step definitions for agent evolution pool supervisor metadata assignment."""
|
||||
|
||||
from behave import given, when, then
|
||||
from pathlib import Path
|
||||
import json
|
||||
from typing import Any, Dict, Optional
|
||||
from typing import Any
|
||||
|
||||
from behave import given, then, when
|
||||
|
||||
|
||||
@given("the agent-evolution-pool-supervisor is configured")
|
||||
@@ -70,7 +70,7 @@ def step_label_id_found(context: Any, label_id: int) -> None:
|
||||
)
|
||||
|
||||
|
||||
@then("the label name is {label_name:w}")
|
||||
@then('the label name is "{label_name}"')
|
||||
def step_label_name_is(context: Any, label_name: str) -> None:
|
||||
"""Verify the label name."""
|
||||
assert context.found_label is not None, "Label should be found"
|
||||
@@ -307,7 +307,7 @@ def step_agent_definition_exists(context: Any) -> None:
|
||||
@when("I read the agent definition")
|
||||
def step_read_agent_definition(context: Any) -> None:
|
||||
"""Read the agent definition file."""
|
||||
with open(context.agent_file_path, "r") as f:
|
||||
with open(context.agent_file_path) as f:
|
||||
context.agent_definition = f.read()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user