aboutsummaryrefslogtreecommitdiffstats
path: root/tests/conftest.py
blob: 7d88ce52ca2a7a622d862910d8a834c38279f215 (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=['', 'home'])
def home(request, tmpdir):
    return tmpdir.ensure_dir(request.param)


@pytest.fixture(scope='function')
def repo(tmpdir):
    return tmpdir.ensure_dir('repo')


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