Error AttributeError: 'SubRequest' object has no attribute 'getfuncargvalue'

collected 43 items / 39 deselected / 4 selected

tests/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 0x108f957d0>

@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’

/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/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 0x108ff1850>

@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’

/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/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 0x108fda2d0>

@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’

/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/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 0x108ff1e50>

@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’

/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pytest_flask/plugin.py:109: AttributeError

I already installed everything and installed everything the course says, but I don’t know what else I can do
Thanks for everything

Hi @Uziel_97062,

Are you inside the virtual environment or activated the anaconda requirement when you are running the test command ?

Kanika

Hello
Yes, I activate the conda environment before running test command

What is the output of pip install -r requirements.txt ?

Kanika