running test gives a lot of messages but status Code I got correct green value:
$ pytest -m paging
============================= test session starts ==============================
platform linux – Python 3.7.0, pytest-3.8.0, py-1.6.0, pluggy-0.7.1
rootdir: /home/oleg/mongo/m220/tests, inifile:
plugins: remotedata-0.3.0, openfiles-0.3.0, flask-0.10.0, doctestplus-0.1.3, arraydiff-0.2
collected 43 items / 40 deselected
test_paging.py EEE [100%]
==================================== ERRORS ====================================
________________ ERROR at setup of test_supports_paging_by_cast ________________
request = <SubRequest ‘_configure_application’ for <Function ‘test_supports_paging_by_cast’>>
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f1fdac9f400>
@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:
conftest.py:14: in app
app.config[‘SECRET_KEY’] = config[‘TEST’][‘SECRET_KEY’]
self = <configparser.ConfigParser object at 0x7f1fdbdaedd8>, key = ‘TEST’
def __getitem__(self, key):
if key != self.default_section and not self.has_section(key):
raise KeyError(key)
E KeyError: ‘TEST’
…/…/…/anaconda3/lib/python3.7/configparser.py:958: KeyError
_______________ ERROR at setup of test_supports_paging_by_genre ________________
request = <SubRequest ‘_configure_application’ for <Function ‘test_supports_paging_by_genre’>>
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f1fdab0a320>
@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:
conftest.py:14: in app
app.config[‘SECRET_KEY’] = config[‘TEST’][‘SECRET_KEY’]
self = <configparser.ConfigParser object at 0x7f1fdbdaedd8>, key = ‘TEST’
def __getitem__(self, key):
if key != self.default_section and not self.has_section(key):
raise KeyError(key)
E KeyError: ‘TEST’
…/…/…/anaconda3/lib/python3.7/configparser.py:958: KeyError
________________ ERROR at setup of test_supports_paging_by_text ________________
request = <SubRequest ‘_configure_application’ for <Function ‘test_supports_paging_by_text’>>
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f1fdac3edd8>
@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:
conftest.py:14: in app
app.config[‘SECRET_KEY’] = config[‘TEST’][‘SECRET_KEY’]
self = <configparser.ConfigParser object at 0x7f1fdbdaedd8>, key = ‘TEST’
def __getitem__(self, key):
if key != self.default_section and not self.has_section(key):
raise KeyError(key)
E KeyError: ‘TEST’
…/…/…/anaconda3/lib/python3.7/configparser.py:958: KeyError
=============================== warnings summary ===============================
/home/oleg/anaconda3/lib/python3.7/site-packages/pytest_flask/plugin.py:109: DeprecationWarning: getfuncargvalue is deprecated, use getfixturevalue
app = request.getfuncargvalue(‘app’)
/home/oleg/anaconda3/lib/python3.7/site-packages/pytest_flask/plugin.py:109: DeprecationWarning: getfuncargvalue is deprecated, use getfixturevalue
app = request.getfuncargvalue(‘app’)
/home/oleg/anaconda3/lib/python3.7/site-packages/pytest_flask/plugin.py:109: DeprecationWarning: getfuncargvalue is deprecated, use getfixturevalue
app = request.getfuncargvalue(‘app’)
– Docs: https://docs.pytest.org/en/latest/warnings.html
============== 40 deselected, 3 warnings, 3 error in 0.20 seconds ==============
oleg@agni-pad:~/mongo/m220/tests$