diff options
author | Jon Bernard <jbernard@tuxion.com> | 2016-01-04 05:45:39 -0500 |
---|---|---|
committer | Jon Bernard <jbernard@tuxion.com> | 2016-01-04 05:48:32 -0500 |
commit | 2d3afb27519c90949ffaaf24f7e0a7f4d4a50e93 (patch) | |
tree | 00bcde360b3ad1456ab217e8cbf2d5f5589b48b0 | |
parent | 0b94c3f5b3b108b6d585313c867a20701b797eb8 (diff) | |
download | dotfiles-2d3afb27519c90949ffaaf24f7e0a7f4d4a50e93.tar.gz dotfiles-2d3afb27519c90949ffaaf24f7e0a7f4d4a50e93.tar.bz2 dotfiles-2d3afb27519c90949ffaaf24f7e0a7f4d4a50e93.zip |
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.
-rw-r--r-- | conftest.py | 8 |
1 files changed, 4 insertions, 4 deletions
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() |