Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bae767a

Browse filesBrowse files
committed
chore(conftest): pydocstyle manual fixes
1 parent 5e9a940 commit bae767a
Copy full SHA for bae767a

File tree

Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed

‎conftest.py

Copy file name to clipboardExpand all lines: conftest.py
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def add_doctest_fixtures(
2727
request: pytest.FixtureRequest,
2828
doctest_namespace: t.Dict[str, t.Any],
2929
) -> None:
30+
"""Configure doctest fixtures for pytest-doctest."""
3031
if isinstance(request._pyfuncitem, DoctestItem) and shutil.which("tmux"):
3132
request.getfixturevalue("set_home")
3233
doctest_namespace["server"] = request.getfixturevalue("server")
@@ -42,6 +43,7 @@ def set_home(
4243
monkeypatch: pytest.MonkeyPatch,
4344
user_path: pathlib.Path,
4445
) -> None:
46+
"""Configure home directory for pytest tests."""
4547
monkeypatch.setenv("HOME", str(user_path))
4648

4749

@@ -51,5 +53,6 @@ def setup(
5153
request: pytest.FixtureRequest,
5254
config_file: pathlib.Path,
5355
) -> None:
56+
"""Configure test fixtures for pytest."""
5457
if USING_ZSH:
5558
request.getfixturevalue("zshrc")

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.