From 2d3afb27519c90949ffaaf24f7e0a7f4d4a50e93 Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Mon, 4 Jan 2016 05:45:39 -0500 Subject: Nest repository in homedir for testing There is a bug when the home directory is not a parent of the repository, this will fixed shortly. --- conftest.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'conftest.py') diff --git a/conftest.py b/conftest.py index a996e54..ee7feb1 100644 --- a/conftest.py +++ b/conftest.py @@ -2,16 +2,16 @@ import pytest from click.testing import CliRunner -@pytest.fixture(scope='function') +@pytest.fixture(scope='function', params=['']) def home(request, tmpdir): - return tmpdir.ensure('home', dir=1) + return tmpdir.join(request.param) @pytest.fixture(scope='function') -def repo(request, tmpdir): +def repo(tmpdir): return tmpdir.ensure('repo', dir=1) @pytest.fixture(scope='function') -def runner(request): +def runner(): return CliRunner() -- cgit v1.2.3