aboutsummaryrefslogtreecommitdiffstats
path: root/conftest.py
blob: a996e5456170a93309281641a3cdd5df4c9c1a7c (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')
def home(request, tmpdir):
    return tmpdir.ensure('home', dir=1)


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


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