create the previously missing cache fixture
there was a disabled test
This commit is contained in:
parent
1de38a25fc
commit
2e87cf4a62
|
@ -171,6 +171,10 @@ def pytest_configure(config):
|
||||||
config.pluginmanager.register(LFPlugin(config), "lfplugin")
|
config.pluginmanager.register(LFPlugin(config), "lfplugin")
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture
|
||||||
|
def cache(request):
|
||||||
|
return request.config.cache
|
||||||
|
|
||||||
def pytest_report_header(config):
|
def pytest_report_header(config):
|
||||||
if config.option.verbose:
|
if config.option.verbose:
|
||||||
relpath = py.path.local().bestrelpath(config.cache._cachedir)
|
relpath = py.path.local().bestrelpath(config.cache._cachedir)
|
||||||
|
|
|
@ -36,7 +36,7 @@ class TestNewAPI:
|
||||||
assert result.ret == 0
|
assert result.ret == 0
|
||||||
result.stdout.fnmatch_lines(["*1 passed*"])
|
result.stdout.fnmatch_lines(["*1 passed*"])
|
||||||
|
|
||||||
def XXX_test_cachefuncarg(self, testdir):
|
def test_cachefuncarg(self, testdir):
|
||||||
testdir.makepyfile("""
|
testdir.makepyfile("""
|
||||||
import pytest
|
import pytest
|
||||||
def test_cachefuncarg(cache):
|
def test_cachefuncarg(cache):
|
||||||
|
|
Loading…
Reference in New Issue