Chapter-1 pytest -m connection failed but api working file

Api’s are working but pytest -m connection is getting failed

http://127.0.0.1:5000/api/v1/movies/
output:
{
“entries_per_page”: 20,
“filters”: {},
“movies”: [
{
“_id”: “573a139af29313caabcf0d74”,
“awards”: “Won 11 Oscars. Another 116 wins & 63 nominations.”,
“cast”: [
“Leonardo DiCaprio”,
“Kate Winslet”,
“Billy Zane”,
“Kathy Bates”
],
“countries”: [
“USA”
],

It is apparently an issue with PyTest v4:

>       app = request.getfuncargvalue('app')
E       _pytest.warning_types.RemovedInPytest4Warning: getfuncargvalue is deprecated, use getfixturevalue

/anaconda/envs/mflix/lib/python3.7/site-packages/pytest_flask/plugin.py:109: RemovedInPytest4Warning

Since the mflix/requirements.txt does not explicit the pytest package – but it is otherwise installed as a dependency from pytest-flask>=3.6 – we have this short-circuit.

Just downgrade your pytest version to the last of the v3 series:

$ pip install pytest==3.10.1

That should work.

Thanks i have downgraded to 3.3.2