Have this issue when running Jupyter on Colab just by establishing connection.
ConfigurationError: The “dnspython” module must be installed to use mongodb+srv:// URIs
When I install pytest, I get E insteadng of F. I have went through every step of instruction but to no avail
==================================== ERRORS ====================================
________________ ERROR at setup of test_basic_country_search_db ________________
request = <SubRequest ‘_configure_application’ for >
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fc67d97d7b8>
@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 = getfixturevalue(request, 'app')
…/mflix_venv/lib/python3.6/site-packages/pytest_flask/plugin.py:142:
…/mflix_venv/lib/python3.6/site-packages/pytest_flask/pytest_compat.py:3: in getfixturevalue
return request.getfixturevalue(value)
conftest.py:14: in app
app.config[‘SECRET_KEY’] = config[‘TEST’][‘SECRET_KEY’]
self = <configparser.ConfigParser object at 0x7fc67e81d240>, key = ‘TEST’
def __getitem__(self, key):
if key != self.default_section and not self.has_section(key):
raise KeyError(key)
E KeyError: ‘TEST’
/usr/lib/python3.6/configparser.py:959: KeyError
_____________ ERROR at setup of test_basic_country_search_shape_db _____________
request = <SubRequest ‘_configure_application’ for >
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fc67d8be2b0>
@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 = getfixturevalue(request, 'app')
…/mflix_venv/lib/python3.6/site-packages/pytest_flask/plugin.py:142:
…/mflix_venv/lib/python3.6/site-packages/pytest_flask/pytest_compat.py:3: in getfixturevalue
return request.getfixturevalue(value)
conftest.py:14: in app
app.config[‘SECRET_KEY’] = config[‘TEST’][‘SECRET_KEY’]
self = <configparser.ConfigParser object at 0x7fc67e81d240>, key = ‘TEST’
def __getitem__(self, key):
if key != self.default_section and not self.has_section(key):
raise KeyError(key)
E KeyError: ‘TEST’
/usr/lib/python3.6/configparser.py:959: KeyError
=========================== 2 error in 0.07 seconds ============================