create the previously missing cache fixture

there was a disabled test
This commit is contained in:
Ronny Pfannschmidt 2015-07-24 20:32:50 +02:00
parent 1de38a25fc
commit 2e87cf4a62
2 changed files with 5 additions and 1 deletions

View File

@ -171,6 +171,10 @@ def pytest_configure(config):
config.pluginmanager.register(LFPlugin(config), "lfplugin")
@pytest.fixture
def cache(request):
return request.config.cache
def pytest_report_header(config):
if config.option.verbose:
relpath = py.path.local().bestrelpath(config.cache._cachedir)

View File

@ -36,7 +36,7 @@ class TestNewAPI:
assert result.ret == 0
result.stdout.fnmatch_lines(["*1 passed*"])
def XXX_test_cachefuncarg(self, testdir):
def test_cachefuncarg(self, testdir):
testdir.makepyfile("""
import pytest
def test_cachefuncarg(cache):