File tree 1 file changed +11
-3
lines changed
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -47,14 +47,22 @@ These fixtures are automatically used when the plugin is enabled and `pytest` is
47
47
- ` /home/${user} ` ({func}` user_path ` )
48
48
- Setting your home directory
49
49
- Patch ` $HOME ` to point to {func}` user_path ` ({func}` set_home ` )
50
- - Set default configuration
50
+ - Create configuration files:
51
51
52
- - ` .gitconfig ` , via {func}` gitconfig ` :
53
- - ` .hgrc ` , via {func}` hgconfig ` :
52
+ - ` .gitconfig ` , via {func}` gitconfig `
53
+ - ` .hgrc ` , via {func}` hgconfig `
54
+
55
+ - Set default configuration for VCS:
56
+
57
+ - Set {func}` hgconfig ` to [ ` HGRCPATH ` ] via {func}` set_hgconfig `
58
+ - Set {func}` gitconfig ` to [ ` GIT_CONFIG ` ] via {func}` set_gitconfig `
54
59
55
60
These are set to ensure you can correctly clone and create repositories without without extra
56
61
warnings.
57
62
63
+ [ `HGRCPATH` ] : https://www.mercurial-scm.org/doc/hg.1.html#:~:text=UNIX%2Dlike%20environments.-,HGRCPATH,-If%20not%20set
64
+ [ `GIT_CONFIG` ] : https://git-scm.com/docs/git-config#Documentation/git-config.txt-GITCONFIG
65
+
58
66
## Bootstrapping pytest in your ` conftest.py `
59
67
60
68
The most common scenario is you will want to configure the above fixtures with ` autouse ` .
You can’t perform that action at this time.
0 commit comments