2010-01-14 00:15:54 +08:00
|
|
|
from py._plugin.pytest_tmpdir import pytest_funcarg__tmpdir
|
2009-09-06 22:59:39 +08:00
|
|
|
|
|
|
|
def test_funcarg(testdir):
|
2010-01-14 00:15:54 +08:00
|
|
|
from py._test.funcargs import FuncargRequest
|
2009-09-06 22:59:39 +08:00
|
|
|
item = testdir.getitem("def test_func(tmpdir): pass")
|
|
|
|
p = pytest_funcarg__tmpdir(FuncargRequest(item))
|
|
|
|
assert p.check()
|
2010-04-27 22:10:25 +08:00
|
|
|
bn = p.basename.strip("0123456789")
|
2009-09-06 22:59:39 +08:00
|
|
|
assert bn.endswith("test_func")
|