MCPcopy Create free account
hub / github.com/pytest-dev/pytest-bdd / __str__

Method __str__

src/pytest_bdd/parser.py:316–322  ·  view source on GitHub ↗

Return a string representation of the step. Returns: str: A string representation of the step.

(self)

Source from the content-addressed store, hash-verified

314 self.docstring = docstring
315
316 def __str__(self) -> str:
317 """Return a string representation of the step.
318
319 Returns:
320 str: A string representation of the step.
321 """
322 return f'{self.type.capitalize()} "{self.name}"'
323
324 @staticmethod
325 def render_datatable(datatable: DataTable, context: Mapping[str, object]) -> DataTable:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected