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

Method __init__

src/pytest_bdd/parser.py:375–378  ·  view source on GitHub ↗
(self, basedir: str, filename: str, encoding: str = "utf-8")

Source from the content-addressed store, hash-verified

373 """
374
375 def __init__(self, basedir: str, filename: str, encoding: str = "utf-8"):
376 self.abs_filename = os.path.abspath(os.path.join(basedir, filename))
377 self.rel_filename = os.path.join(os.path.basename(basedir), filename)
378 self.encoding = encoding
379
380 def parse_steps(self, steps_data: list[GherkinStep]) -> list[Step]:
381 """Parse a list of step data into Step objects.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected