start reorganizing docs, write more docs, shift plugin docs, to proper documentation,
use sphinx, remove old docs ... work in progress. --HG-- branch : trunk
This commit is contained in:
10
example/assertion/global_testmodule_config/conftest.py
Normal file
10
example/assertion/global_testmodule_config/conftest.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import py
|
||||
mydir = py.path.local(__file__).dirpath()
|
||||
|
||||
def pytest_runtest_setup(item):
|
||||
if isinstance(item, py.test.collect.Function):
|
||||
if not item.fspath.relto(mydir):
|
||||
return
|
||||
mod = item.getparent(py.test.collect.Module).obj
|
||||
if hasattr(mod, 'hello'):
|
||||
py.builtin.print_("mod.hello", mod.hello)
|
||||
5
example/assertion/global_testmodule_config/test_hello.py
Normal file
5
example/assertion/global_testmodule_config/test_hello.py
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
hello = "world"
|
||||
|
||||
def test_func():
|
||||
pass
|
||||
Reference in New Issue
Block a user