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

Class ExamplesTable

src/pytest_bdd/gherkin_parser.py:105–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103
104@dataclass
105class ExamplesTable:
106 location: Location
107 tags: list[Tag]
108 name: str | None = None
109 table_header: Row | None = None
110 table_body: list[Row] | None = field(default_factory=list)
111
112 @classmethod
113 def from_dict(cls, data: dict[str, Any]) -> Self:
114 return cls(
115 location=Location.from_dict(data["location"]),
116 name=data.get("name"),
117 table_header=Row.from_dict(data["tableHeader"]) if data.get("tableHeader") else None,
118 table_body=[Row.from_dict(row) for row in data.get("tableBody", [])],
119 tags=[Tag.from_dict(tag) for tag in data["tags"]],
120 )
121
122
123@dataclass

Callers 1

test_parserFunction · 0.90

Calls

no outgoing calls

Tested by 1

test_parserFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…