10 lines
354 B
Python
10 lines
354 B
Python
from pytest.plugin.pytest_tmpdir import pytest_funcarg__tmpdir
|
|
from pytest.plugin.pytest_python import FuncargRequest
|
|
|
|
def test_funcarg(testdir):
|
|
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")
|