MCPcopy
hub / github.com/pytest-dev/pytest / makepyprojecttoml

Method makepyprojecttoml

src/_pytest/pytester.py:859–867  ·  view source on GitHub ↗

Write a pyproject.toml file. :param source: The contents. :returns: The pyproject.ini file. .. versionadded:: 6.0

(self, source: str)

Source from the content-addressed store, hash-verified

857 return IniConfig(str(p))["pytest"]
858
859 def makepyprojecttoml(self, source: str) -> Path:
860 """Write a pyproject.toml file.
861
862 :param source: The contents.
863 :returns: The pyproject.ini file.
864
865 .. versionadded:: 6.0
866 """
867 return self.makefile(".toml", pyproject=source)
868
869 def makepyfile(self, *args: _FileContent, **kwargs: _FileContent) -> Path:
870 r"""Shortcut for .makefile() with a .py extension.

Calls 1

makefileMethod · 0.95

Tested by

no test coverage detected