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

Function Config_rootdir

src/_pytest/legacypath.py:354–361  ·  view source on GitHub ↗

The path to the :ref:`rootdir `. Prefer to use :attr:`rootpath`, which is a :class:`pathlib.Path`. :type: LEGACY_PATH

(self: Config)

Source from the content-addressed store, hash-verified

352
353
354def Config_rootdir(self: Config) -> LEGACY_PATH:
355 """The path to the :ref:`rootdir <rootdir>`.
356
357 Prefer to use :attr:`rootpath`, which is a :class:`pathlib.Path`.
358
359 :type: LEGACY_PATH
360 """
361 return legacy_path(str(self.rootpath))
362
363
364def Config_inifile(self: Config) -> Optional[LEGACY_PATH]:

Callers

nothing calls this directly

Calls 1

legacy_pathFunction · 0.90

Tested by

no test coverage detected