blob: 9e1d16abdd9a33f9fdaf0d9b6727e81ab582cd31 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import pytest
from click.testing import CliRunner
from dotfiles.repository import Repository
@pytest.fixture(scope='function', params=['', 'home'])
def repo(request, tmpdir):
path = tmpdir.ensure_dir('repo')
home = tmpdir.ensure_dir(request.param)
return Repository(path, homedir=home)
@pytest.fixture(scope='function')
def runner():
return CliRunner()
|