Create a new (sub)directory. :param name: The name of the directory, relative to the pytester path. :returns: The created directory. :rtype: pathlib.Path
(self, name: str | os.PathLike[str])
| 921 | self._monkeypatch.syspath_prepend(str(path)) |
| 922 | |
| 923 | def mkdir(self, name: str | os.PathLike[str]) -> Path: |
| 924 | class="st">"""Create a new (sub)directory. |
| 925 | |
| 926 | :param name: |
| 927 | The name of the directory, relative to the pytester path. |
| 928 | :returns: |
| 929 | The created directory. |
| 930 | :rtype: pathlib.Path |
| 931 | class="st">""" |
| 932 | p = self.path / name |
| 933 | p.mkdir() |
| 934 | return p |
| 935 | |
| 936 | def mkpydir(self, name: str | os.PathLike[str]) -> Path: |
| 937 | class="st">"""Create a new python package. |
no outgoing calls
no test coverage detected