move test files out of py lib proper
* separate all tests from plugins * simplify implicit inclusion of plugins under test * have test_initpkg perform direct checks instead of yielding tests * fix example tests for 3k --HG-- branch : trunk
This commit is contained in:
9
testing/pytest/plugin/test_pytest_tmpdir.py
Normal file
9
testing/pytest/plugin/test_pytest_tmpdir.py
Normal file
@@ -0,0 +1,9 @@
|
||||
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")
|
||||
Reference in New Issue
Block a user