diff options
Diffstat (limited to 'conftest.py')
-rw-r--r-- | conftest.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/conftest.py b/conftest.py new file mode 100644 index 0000000..a996e54 --- /dev/null +++ b/conftest.py @@ -0,0 +1,17 @@ +import pytest +from click.testing import CliRunner + + +@pytest.fixture(scope='function') +def home(request, tmpdir): + return tmpdir.ensure('home', dir=1) + + +@pytest.fixture(scope='function') +def repo(request, tmpdir): + return tmpdir.ensure('repo', dir=1) + + +@pytest.fixture(scope='function') +def runner(request): + return CliRunner() |