Error executing pytest -m projection

Hi guys,

When executing pytest -m projection I am getting this error.

________________ ERROR at setup of test_basic_country_search_db ________________

request = <SubRequest ‘_configure_application’ for >
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x11c08c8d0>

@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 'app' not in request.fixturenames:
        return
  app = request.getfuncargvalue('app')

E _pytest.warning_types.RemovedInPytest4Warning: getfuncargvalue is deprecated, use getfixturevalue

/anaconda3/lib/python3.7/site-packages/pytest_flask/plugin.py:109: RemovedInPytest4Warning

Please try solution mentioned in the below thread and let me know if it works.

Kanika

Hi @Kanika.

Thank you for that bit It os nota the same. I don’t have problem with connection. My error is related to a function deprecated into pytest which I receive when executing the projection test.

Hi @fcabralj,

Sorry for misunderstanding the issue. Here are the solutions that might work:

pip install -r requirements.txt
pip uninstall pytest pytest-flask
pip install pytest-flask

Source: Pytest error "RemovedInPytest4Warning: getfuncargvalue is deprecated, use getfixturevalue"

Let me know if it works! We will update the requirements file.

Kanika

1 Like

Thank you. IT worked.