We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f483c6 commit cf4c215Copy full SHA for cf4c215
tests/conftest.py
@@ -1,3 +1,4 @@
1
+import getpass
2
import pathlib
3
from typing import Dict
4
@@ -7,6 +8,18 @@
7
8
from libvcs.util import run
9
10
11
+@pytest.fixture(autouse=True, scope="session")
12
+def home_path(tmp_path_factory: pytest.TempPathFactory):
13
+ return tmp_path_factory.mktemp("home")
14
+
15
16
17
+def user_path(home_path: pathlib.Path):
18
+ p = home_path / getpass.getuser()
19
+ p.mkdir()
20
+ return p
21
22
23
@pytest.fixture(scope="function")
24
def parentdir(tmp_path: pathlib.Path):
25
"""Return temporary directory for repository checkout guaranteed unique."""
0 commit comments