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
3
Example 1
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')
3
Example 2
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')
3
Example 3
def pytest_funcarg__app(request):
"""
Application with mocked lookup.
"""
request.applymarker(pytest.mark.mock_lookup)
return request.getfuncargvalue('app')