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

Method maketoml

src/_pytest/pytester.py:844–852  ·  view source on GitHub ↗

Write a pytest.toml file. :param source: The contents. :returns: The pytest.toml file. .. versionadded:: 9.0

(self, source: str)

Source from the content-addressed store, hash-verified

842 return self.makefile(".ini", tox=source)
843
844 def maketoml(self, source: str) -> Path:
845 """Write a pytest.toml file.
846
847 :param source: The contents.
848 :returns: The pytest.toml file.
849
850 .. versionadded:: 9.0
851 """
852 return self.makefile(".toml", pytest=source)
853
854 def getinicfg(self, source: str) -> SectionWrapper:
855 """Return the pytest section from the tox.ini config file."""

Calls 1

makefileMethod · 0.95

Tested by

no test coverage detected