_py/... with py/__init__.py containing pointers into them The new apipkg is only around 70 lines of code and allows us to get rid of the infamous "py.__." by regular non-magical "_py." imports. It is also available as a separately installable package, see http://bitbucket.org/hpk42/apipkg --HG-- branch : trunk
10 lines
351 B
Python
10 lines
351 B
Python
from _py.test.plugin.pytest_tmpdir import pytest_funcarg__tmpdir
|
|
|
|
def test_funcarg(testdir):
|
|
from _py.test.funcargs import FuncargRequest
|
|
item = testdir.getitem("def test_func(tmpdir): pass")
|
|
p = pytest_funcarg__tmpdir(FuncargRequest(item))
|
|
assert p.check()
|
|
bn = p.basename.strip("0123456789-")
|
|
assert bn.endswith("test_func")
|