@@ -69,26 +69,27 @@ _Why aren't these fixtures added automatically by the plugin?_ This design choic
69
69
70
70
### Setting a Temporary Home Directory
71
71
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 ` :
73
73
74
74
``` python
75
75
import pytest
76
76
77
77
@pytest.fixture (autouse = True )
78
- def setup (set_home : None ):
78
+ def setup_home (set_home : None ):
79
79
pass
80
80
```
81
81
82
82
### VCS Configuration
83
83
84
84
#### Git
85
85
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 ` :
88
88
89
89
``` python
90
90
@pytest.fixture (scope = " session" )
91
91
def vcs_name () -> str :
92
+ """ Provide a custom author name for Git commits."""
92
93
return " My custom name"
93
94
```
94
95
@@ -98,7 +99,7 @@ Use the {func}`set_gitconfig` fixture with `autouse=True`:
98
99
import pytest
99
100
100
101
@pytest.fixture (autouse = True )
101
- def setup (set_gitconfig : None ):
102
+ def setup_git (set_gitconfig : None ):
102
103
pass
103
104
```
104
105
@@ -133,7 +134,7 @@ Use the {func}`set_hgconfig` fixture with `autouse=True`:
133
134
import pytest
134
135
135
136
@pytest.fixture (autouse = True )
136
- def setup (set_hgconfig : None ):
137
+ def setup_hg (set_hgconfig : None ):
137
138
pass
138
139
```
139
140
0 commit comments