While trying with Ubuntu 18.04, I have faced this error while running
pytest -m connection
E _pytest.warning_types.RemovedInPytest4Warning: getfuncargvalue is deprecated, use getfixturevalue
~/anaconda3/lib/python3.7/site-packages/pytest_flask/plugin.py:109: RemovedInPytest4Warning
=== 39 deselected, 4 error in 0.13 seconds ==================================================================================
Solution [what worked for me] >>
After doing below it worked
- Changed flask version in requirements.txt file from 0,10,0 to 0.11.0
- pip install -r requirements.txt
- pytest -m connection
- it shows which plugin version it loads and it shops showing the error. The test passes successfully for me.
plugins: remotedata-0.3.1, openfiles-0.3.1, flask-0.11.0, doctestplus-0.2.0, arraydiff-0.3