aboutsummaryrefslogtreecommitdiffstats
path: root/conftest.py
blob: ee7feb11a52f6a96dc83f18bbd31cb8a4900569f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import pytest
from click.testing import CliRunner


@pytest.fixture(scope='function', params=[''])
def home(request, tmpdir):
    return tmpdir.join(request.param)


@pytest.fixture(scope='function')
def repo(tmpdir):
    return tmpdir.ensure('repo', dir=1)


@pytest.fixture(scope='function')
def runner():
    return CliRunner()