Did I find the right examples for you? yes no

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

        def with_app(*sphinxargs, **sphinxkwargs):
    def testcase(func):
        @wraps(func)
        def decorator(*args, **kwargs):
            app = None
            try:
                app = FakeSphinx(*sphinxargs, **sphinxkwargs)
                func(*(args + (app,)), **kwargs)
            finally:
                if app:
                    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

src/s/p/sphinxcontrib-blockdiag-1.3.1/tests/test_basic.py   sphinxcontrib-blockdiag(Download)
# -*- coding: utf-8 -*-
 
from utils import with_app