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

Method __bool__

src/pytest_bdd/parser.py:130–136  ·  view source on GitHub ↗

Check if there are any examples. Returns: bool: True if there are examples, False otherwise.

(self)

Source from the content-addressed store, hash-verified

128 yield dict(zip(self.example_params, row))
129
130 def __bool__(self) -> bool:
131 """Check if there are any examples.
132
133 Returns:
134 bool: True if there are examples, False otherwise.
135 """
136 return bool(self.examples)
137
138
139@dataclass(eq=False)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected