@@ -109,15 +109,18 @@ cases, you can use {func}`git_commit_envvars`:
109
109
``` python
110
110
import pytest
111
111
from typing import Dict, Any
112
- from libvcs.pytest_plugin import CreateRepoPytestFixtureFn
112
+ from libvcs.pytest_plugin import CreateRepoPytestFixtureFn, git_remote_repo_single_commit_post_init
113
113
114
114
@pytest.fixture
115
115
def my_git_repo (
116
116
create_git_remote_repo : CreateRepoPytestFixtureFn,
117
117
gitconfig : pathlib.Path,
118
118
git_commit_envvars : Dict[str , Any],
119
119
) -> pathlib.Path:
120
- """ Copy the session-scoped Git repository to a temporary directory."""
120
+ """ Create a fresh Git repository in a temporary directory.
121
+
122
+ This fixture demonstrates how to create a Git repository with custom commit settings.
123
+ """
121
124
repo_path = create_git_remote_repo()
122
125
git_remote_repo_single_commit_post_init(
123
126
remote_repo_path = repo_path,
@@ -134,13 +137,14 @@ Use the {func}`set_hgconfig` fixture with `autouse=True`:
134
137
import pytest
135
138
136
139
@pytest.fixture (autouse = True )
137
- def setup_hg (set_hgconfig : None ):
140
+ def setup_hg (set_hgconfig : None ) -> None :
141
+ """ Configure Mercurial settings for testing."""
138
142
pass
139
143
```
140
144
141
145
## Examples
142
146
143
- For usage examples, refer to libvcs's own [ tests/] ( https://github.com/vcs-python/libvcs/tree/master/tests ) .
147
+ For more usage examples, refer to libvcs's own [ tests/] ( https://github.com/vcs-python/libvcs/tree/master/tests ) .
144
148
145
149
## API Reference
146
150
0 commit comments