From c1f3adc019452808ea85dbb14661979c5c277eb8 Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Fri, 15 Jan 2016 16:56:31 -0500 Subject: Move implementation and tests back to directories I think keeping the physical separation is helpful, especially as more features get added. --- tests/conftest.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/conftest.py (limited to 'tests/conftest.py') 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() -- cgit v1.2.3