aboutsummaryrefslogtreecommitdiffstats
path: root/tests/conftest.py
diff options
context:
space:
mode:
authorGravatar Jon Bernard <jbernard@tuxion.com> 2016-01-15 16:56:31 -0500
committerGravatar Jon Bernard <jbernard@tuxion.com> 2016-01-15 16:56:31 -0500
commitc1f3adc019452808ea85dbb14661979c5c277eb8 (patch)
treeb475d14699275dcd40e0d7b446147d17591f5141 /tests/conftest.py
parent4ec7ae423fcc957d3d1ee14faea54afbdc406ded (diff)
downloaddotfiles-c1f3adc019452808ea85dbb14661979c5c277eb8.tar.gz
dotfiles-c1f3adc019452808ea85dbb14661979c5c277eb8.tar.bz2
dotfiles-c1f3adc019452808ea85dbb14661979c5c277eb8.zip
Move implementation and tests back to directories
I think keeping the physical separation is helpful, especially as more features get added.
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
new file mode 100644
index 0000000..f28429c
--- /dev/null
+++ b/tests/conftest.py
@@ -0,0 +1,17 @@
+import pytest
+from click.testing import CliRunner
+
+
+@pytest.fixture(scope='function', params=['', 'home'])
+def home(request, tmpdir):
+ return tmpdir.ensure(request.param, dir=1)
+
+
+@pytest.fixture(scope='function')
+def repo(tmpdir):
+ return tmpdir.ensure('repo', dir=1)
+
+
+@pytest.fixture(scope='function')
+def runner():
+ return CliRunner()