Skip to content

Commit 63ddfe7

Browse files
committed
docs: Fix merge conflict in pytest plugin documentation
1 parent ce60572 commit 63ddfe7

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

docs/pytest-plugin.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,26 +69,27 @@ _Why aren't these fixtures added automatically by the plugin?_ This design choic
6969

7070
### Setting a Temporary Home Directory
7171

72-
To set a temporary home directory, use the {func}`set_home` fixture with `autouse=True`:
72+
To set up a temporary home directory, use the {func}`set_home` fixture with `autouse=True`:
7373

7474
```python
7575
import pytest
7676

7777
@pytest.fixture(autouse=True)
78-
def setup(set_home: None):
78+
def setup_home(set_home: None):
7979
pass
8080
```
8181

8282
### VCS Configuration
8383

8484
#### Git
8585

86-
You can override the default author used in {func}`git_remote_repo` and other
87-
fixtures via {func}`vcs_name`, {func}`vcs_email`, and {func}`vcs_user`:
86+
You can override the default author information used in {func}`git_remote_repo` and other
87+
fixtures by customizing {func}`vcs_name`, {func}`vcs_email`, or {func}`vcs_user`:
8888

8989
```python
9090
@pytest.fixture(scope="session")
9191
def vcs_name() -> str:
92+
"""Provide a custom author name for Git commits."""
9293
return "My custom name"
9394
```
9495

@@ -98,7 +99,7 @@ Use the {func}`set_gitconfig` fixture with `autouse=True`:
9899
import pytest
99100

100101
@pytest.fixture(autouse=True)
101-
def setup(set_gitconfig: None):
102+
def setup_git(set_gitconfig: None):
102103
pass
103104
```
104105

@@ -133,7 +134,7 @@ Use the {func}`set_hgconfig` fixture with `autouse=True`:
133134
import pytest
134135

135136
@pytest.fixture(autouse=True)
136-
def setup(set_hgconfig: None):
137+
def setup_hg(set_hgconfig: None):
137138
pass
138139
```
139140

0 commit comments

Comments
 (0)