when I tried to run pytest -m connection, i got errors :
============================= test session starts ==============================
platform linux – Python 3.6.3, pytest-5.3.1, py-1.8.0, pluggy-0.13.1
rootdir: /home/supriadi/projects/mflix-python/tests
plugins: flask-0.10.0
collected 43 items / 39 deselected / 4 selected
test_db_connection.py EEEE [100%]
==================================== ERRORS ====================================
______________________ ERROR at setup of test_atlas_setup ______________________
request = <SubRequest ‘_configure_application’ for >
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fcfa952d4a8>
@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 AttributeError: ‘SubRequest’ object has no attribute ‘getfuncargvalue’
…/mflix_venv/lib64/python3.6/site-packages/pytest_flask/plugin.py:109: AttributeError
_____________________ ERROR at setup of test_basic_movies ______________________
request = <SubRequest ‘_configure_application’ for >
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fcfa9511518>
@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 AttributeError: ‘SubRequest’ object has no attribute ‘getfuncargvalue’
…/mflix_venv/lib64/python3.6/site-packages/pytest_flask/plugin.py:109: AttributeError
__________________ ERROR at setup of test_search_by_movie_id ___________________
request = <SubRequest ‘_configure_application’ for >
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fcfa952db38>
@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 AttributeError: ‘SubRequest’ object has no attribute ‘getfuncargvalue’
…/mflix_venv/lib64/python3.6/site-packages/pytest_flask/plugin.py:109: AttributeError
__________________ ERROR at setup of test_simple_text_search ___________________
request = <SubRequest ‘_configure_application’ for >
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fcfa9511908>
@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 AttributeError: ‘SubRequest’ object has no attribute ‘getfuncargvalue’
…/mflix_venv/lib64/python3.6/site-packages/pytest_flask/plugin.py:109: AttributeError
I need advice regarding these errors. Thank you.