@pytest.fixture(autouse=True)
def _configure_application(request, monkeypatch):
    """Use `pytest.mark.options` decorator to pass options to your application
    factory::

        @pytest.mark.options(debug=False)
        def test_something(app):
            assert not app.debug, 'the application works not in debug mode!'

    """
    if request.fixturenames not in 'app':
        return

    app = request.getfuncargvalue('app')
    options = request.keywords.get('options')
    if options is not None:
        for key, value in options.kwargs.items():
            monkeypatch.setitem(app.config, key.upper(), value)
dataset/ETHPy150Open vitalk/pytest-flask/pytest_flask/plugin.py/_configure_application/swapped operands of `not in`