Back to index

moin  1.9.0~rc2
Classes | Functions | Variables
MoinMoin.conftest Namespace Reference

Classes

class  MoinTestFunction
class  MoinClassCollector
class  Module

Functions

def report_coverage
def callback
def init_test_request
def pytest_funcarg__request

Variables

tuple rootdir = py.magic.autopath()
tuple moindir = rootdir.join("..")
tuple coverage_modules = set()
string help = 'Output information about code coverage (slow!)'
 coverage = None

Function Documentation

def MoinMoin.conftest.callback (   option,
  opt_str,
  value,
  parser 
)

Definition at line 55 of file conftest.py.

00055 
00056     def callback(option, opt_str, value, parser):
00057         atexit.register(report_coverage)
00058         coverage.erase()
00059         coverage.start()

Here is the caller graph for this function:

def MoinMoin.conftest.init_test_request (   given_config = None,
  static_state = [False] 
)

Definition at line 68 of file conftest.py.

00068 
00069 def init_test_request(given_config=None, static_state=[False]):
00070     if not static_state[0]:
00071         maketestwiki.run(True)
00072         static_state[0] = True
00073     request = TestRequest()
00074     request.given_config = given_config
00075     request = init(request)
00076     return request
00077 
00078 
00079 # py.test customization starts here
00080 
# py.test-1.0 provides "funcargs" natively

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 81 of file conftest.py.

00081 
00082 def pytest_funcarg__request(request):
00083     # note the naminng clash: py.test's funcarg-request object
00084     # and the request we provide are totally separate things
00085     cls = request._pyfuncitem.getparent(py.test.collect.Module)
00086     return cls.request

Definition at line 49 of file conftest.py.

00049 
00050     def report_coverage():
00051         coverage.stop()
00052         module_list = [sys.modules[mod] for mod in coverage_modules]
00053         module_list.sort()
00054         coverage.report(module_list)


Variable Documentation

Definition at line 65 of file conftest.py.

Definition at line 37 of file conftest.py.

string MoinMoin.conftest.help = 'Output information about code coverage (slow!)'

Definition at line 62 of file conftest.py.

tuple MoinMoin.conftest.moindir = rootdir.join("..")

Definition at line 29 of file conftest.py.

tuple MoinMoin.conftest.rootdir = py.magic.autopath()

Definition at line 28 of file conftest.py.