aboutsummaryrefslogtreecommitdiffstats
path: root/tests/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 7d88ce5..f5beb21 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1,15 +1,14 @@
import pytest
from click.testing import CliRunner
-
-@pytest.fixture(scope='function', params=['', 'home'])
-def home(request, tmpdir):
- return tmpdir.ensure_dir(request.param)
+from dotfiles.repository import Repository
-@pytest.fixture(scope='function')
-def repo(tmpdir):
- return tmpdir.ensure_dir('repo')
+@pytest.fixture(scope='function', params=['', 'home'])
+def repo(request, tmpdir):
+ path = tmpdir.ensure_dir('repo')
+ home = tmpdir.ensure_dir(request.param)
+ return Repository(path, home)
@pytest.fixture(scope='function')