pytester: add docstrings for Testdir.copy_example
This commit is contained in:
parent
5ecac3c861
commit
e0ce8b79d5
|
@ -0,0 +1 @@
|
||||||
|
Add docstring for ``Testdir.copy_example``.
|
|
@ -630,6 +630,12 @@ class Testdir:
|
||||||
return p
|
return p
|
||||||
|
|
||||||
def copy_example(self, name=None):
|
def copy_example(self, name=None):
|
||||||
|
"""Copy file from project's directory into the testdir.
|
||||||
|
|
||||||
|
:param str name: The name of the file for copy.
|
||||||
|
:return: self.tmpdir
|
||||||
|
|
||||||
|
"""
|
||||||
import warnings
|
import warnings
|
||||||
from _pytest.warning_types import PYTESTER_COPY_EXAMPLE
|
from _pytest.warning_types import PYTESTER_COPY_EXAMPLE
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue