021d09991a
Three step patterns in pyyaml_security_steps.py clashed with existing step files, causing all Behave features to error at load time: - "I call load_yaml_text with YAML text" clashed with actor_config_coverage_boost_steps.py:103 - "the load_yaml_text result should have key" clashed with actor_config_coverage_boost_steps.py:90 - "a ValueError should be raised" clashed with lsp_registry_steps.py:475 Rename all three to unique patterns and update pyyaml_security.feature to match. Also fix typings/behave/runner.pyi ruff format (.pyi convention: single blank line before class, no blank lines between stub methods) and add missing fastapi>=0.100.0 to pyproject.toml (asgi_app.py imports fastapi but it was absent from declared dependencies, causing typecheck and integration test failures). Refs: #9055
10 lines
290 B
Python
10 lines
290 B
Python
"""Stub for ``behave.runner`` — provides ``Context`` class used in BDD step definitions."""
|
|
|
|
from typing import Any
|
|
|
|
class Context:
|
|
"""Behave scenario context object."""
|
|
|
|
def __init__(self) -> None: ...
|
|
def add_cleanup(self, func: Any, *args: Any, **kwargs: Any) -> None: ...
|