blob: f28429cb0f28757b265935c20a076f6a4293a6d3 (
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(request.param, dir=1)
@pytest.fixture(scope='function')
def repo(tmpdir):
return tmpdir.ensure('repo', dir=1)
@pytest.fixture(scope='function')
def runner():
return CliRunner()
|