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

Method makeconftest

src/_pytest/pytester.py:828–834  ·  src/_pytest/pytester.py::Pytester.makeconftest

Write a conftest.py file. :param source: The contents. :returns: The conftest.py file.

(self, source: str)

Source from the content-addressed store, hash-verified

826 return self._makefile(ext, args, kwargs)
827
828 def makeconftest(self, source: str) -> Path:
829 class="st">"""Write a conftest.py file.
830
831 :param source: The contents.
832 :returns: The conftest.py file.
833 class="st">"""
834 return self.makepyfile(conftest=source)
835
836 def makeini(self, source: str) -> Path:
837 class="st">"""Write a tox.ini file.

Calls 1

makepyfileMethod · 0.95

Tested by

no test coverage detected