All, I have updated the .ini file as per the instructions, I have used ‘’‘pip install -r requirements.txt’’’ to install all the necessary libraries, I have also made sure the data has been loaded correctly to Atlas. When I run the ‘’‘pytest -m connection error’’’ i get a slew of errors:
‘’'tests/test_db_connection.py EEEE [100%]
==================================== ERRORS ====================================
______________________ ERROR at setup of test_atlas_setup ______________________
request = <SubRequest ‘_configure_application’ for <Function ‘test_atlas_setup’>>
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f66a3487ac8>
@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
_____________________ ERROR at setup of test_basic_movies ______________________
request = <SubRequest ‘_configure_application’ for <Function ‘test_basic_movies’>>
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f66a3459518>
@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')
…/…/anaconda3/lib/python3.7/site-packages/pytest_flask/plugin.py:109:
request = <SubRequest ‘_configure_application’ for <Function ‘test_atlas_setup’>>
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f66a3487ac8>
@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
__________________ ERROR at setup of test_search_by_movie_id ___________________
request = <SubRequest ‘_configure_application’ for <Function ‘test_search_by_movie_id’>>
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f66a348bc18>
@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')
…/…/anaconda3/lib/python3.7/site-packages/pytest_flask/plugin.py:109:
…/…/anaconda3/lib/python3.7/site-packages/pytest_flask/plugin.py:109: in _configure_application
app = request.getfuncargvalue(‘app’)
request = <SubRequest ‘_configure_application’ for <Function ‘test_atlas_setup’>>
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f66a3487ac8>
@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
__________________ ERROR at setup of test_simple_text_search ___________________
request = <SubRequest ‘_configure_application’ for <Function ‘test_simple_text_search’>>
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f66a3459c50>
@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')
…/…/anaconda3/lib/python3.7/site-packages/pytest_flask/plugin.py:109:
…/…/anaconda3/lib/python3.7/site-packages/pytest_flask/plugin.py:109: in _configure_application
app = request.getfuncargvalue(‘app’)
…/…/anaconda3/lib/python3.7/site-packages/pytest_flask/plugin.py:109: in _configure_application
app = request.getfuncargvalue(‘app’)
request = <SubRequest ‘_configure_application’ for <Function ‘test_atlas_setup’>>
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f66a3487ac8>
@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
==================== 39 deselected, 4 error in 0.10 seconds ==================’’’
These errors don’t really tell me all that much. Anyone else getting such errors? Anyone know what is going wrong?