pytest.mark.mock_lookup

Here are the examples of the python api pytest.mark.mock_lookup taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

3 Examples 7

Example 1

Project: sphinxcontrib-issuetracker Source File: test_lookup.py
Function: pytest_funcarg_app
def pytest_funcarg__app(request):
    """
    Adds the ``mock_lookup`` and ``build_app`` markers to the current test
    before creating the ``app``.
    """
    request.applymarker(pytest.mark.mock_lookup)
    request.applymarker(pytest.mark.build_app)
    return request.getfuncargvalue('app')

Example 2

Project: sphinxcontrib-issuetracker Source File: test_resolval.py
Function: pytest_funcarg_app
def pytest_funcarg__app(request):
    """
    Adds the ``mock_lookup`` marker to the current test before creating the
    ``app``.
    """
    request.applymarker(pytest.mark.mock_lookup)
    return request.getfuncargvalue('app')

Example 3

Project: sphinxcontrib-issuetracker Source File: test_stylesheet.py
Function: pytest_funcarg_app
def pytest_funcarg__app(request):
    """
    Application with mocked lookup.
    """
    request.applymarker(pytest.mark.mock_lookup)
    return request.getfuncargvalue('app')