Skip to content

Commit b34606c

Browse files
committed
tests: Move fixture to conftest
1 parent addaaac commit b34606c

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

tests/utils/subprocess/conftest.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import pathlib
2+
3+
import pytest
4+
5+
6+
@pytest.fixture(autouse=True)
7+
def cwd_default(monkeypatch: pytest.MonkeyPatch, tmp_path: pathlib.Path):
8+
monkeypatch.chdir(tmp_path)

tests/utils/subprocess/test_SubprocessCommand.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@
77
from libvcs.utils.subprocess import SubprocessCommand
88

99

10-
@pytest.fixture(autouse=True)
11-
def cwd_default(monkeypatch: pytest.MonkeyPatch, tmp_path: pathlib.Path):
12-
monkeypatch.chdir(tmp_path)
13-
14-
1510
@pytest.mark.parametrize(
1611
"args,kwargs,expected_result",
1712
[

0 commit comments

Comments
 (0)