Did I find the right examples for you? yes no

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

        def with_parsed(*sphinxargs, **sphinxkwargs):
    def testcase(func):
        @wraps(func)
        def decorator(*args, **kwargs):
            app = None
            try:
                app = FakeSphinx(*sphinxargs, **sphinxkwargs)
                nodes = app.parse_string(func.__doc__)
                func(*(args + (nodes,)), **kwargs)
            finally:
                app.cleanup()
        return decorator

    return testcase
        


src/s/p/sphinxcontrib-blockdiag-1.3.1/tests/test_errors.py   sphinxcontrib-blockdiag(Download)
# -*- coding: utf-8 -*-
 
from mock import patch, Mock
from utils import FakeSphinx, with_app, with_parsed
import sphinxcontrib.blockdiag