diff options
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() |