Skip to content

Commit b788a99

Browse files
committed
conftest: create empty dir fixture
1 parent 06d6c2c commit b788a99

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/conftest.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from git import Repo
88
from git.exc import GitCommandNotFound
99

10-
from .basic_env import TestDirFixture
10+
from .basic_env import TestDirFixture, TestDirFixtureBase
1111
from .basic_env import TestDvcGitFixture
1212
from .basic_env import TestGitFixture
1313
from dvc.remote.config import RemoteConfig
@@ -190,3 +190,11 @@ def git_erepo():
190190
repo.setUp()
191191
yield repo
192192
repo.tearDown()
193+
194+
195+
@pytest.fixture
196+
def empty_dir():
197+
directory = TestDirFixtureBase()
198+
directory.setUp()
199+
yield directory
200+
directory.tearDown()

0 commit comments

Comments
 (0)