diff options
author | Jon Bernard <jbernard@tuxion.com> | 2016-01-15 16:56:31 -0500 |
---|---|---|
committer | Jon Bernard <jbernard@tuxion.com> | 2016-01-15 16:56:31 -0500 |
commit | c1f3adc019452808ea85dbb14661979c5c277eb8 (patch) | |
tree | b475d14699275dcd40e0d7b446147d17591f5141 /tests/conftest.py | |
parent | 4ec7ae423fcc957d3d1ee14faea54afbdc406ded (diff) | |
download | dotfiles-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.py | 17 |
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() |