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

Method makepyprojecttoml

src/_pytest/pytester.py:845–850  ·  view source on GitHub ↗

Write a pyproject.toml file with 'source' as contents. .. versionadded:: 6.0

(self, source: str)

Source from the content-addressed store, hash-verified

843 return IniConfig(str(p))["pytest"]
844
845 def makepyprojecttoml(self, source: str) -> Path:
846 """Write a pyproject.toml file with 'source' as contents.
847
848 .. versionadded:: 6.0
849 """
850 return self.makefile(".toml", pyproject=source)
851
852 def makepyfile(self, *args, **kwargs) -> Path:
853 r"""Shortcut for .makefile() with a .py extension.

Calls 1

makefileMethod · 0.95

Tested by

no test coverage detected