Tests fails

25 views
Skip to first unread message

Benoit Toulet

unread,
Jan 4, 2021, 6:05:02 AM1/4/21
to MongoEngine Users
Hello MongoEngine Users

I'm trying to share some improvements I made to better support mutltiDB, as an alternative to switch_db.

I naturally started with fork master + run tests, and surprisingly, it fails several times !!!!
My environment:
Linux Ubuntu
Python 3.8
MongoDB 4.4

Here is the summary:

====================================================================================== short test summary info ======================================================================================
FAILED tests/document/test_indexes.py::TestIndexes::test_covered_index - AssertionError: assert 'PROJECTION_COVERED' == 'PROJECTION'
FAILED tests/queryset/test_queryset.py::TestQueryset::test_distinct_ListField_EmbeddedDocumentField - AssertionError: assert [<Author: Aut...uthor object>] == [<Author: Aut...uthor object>]
FAILED tests/queryset/test_queryset.py::TestQueryset::test_distinct_ListField_EmbeddedDocumentField_EmbeddedDocumentField - AssertionError: assert [<Continent: ...inent object>] == [<Continent: ...
FAILED tests/queryset/test_queryset.py::TestQueryset::test_exec_js_field_sub - pymongo.errors.OperationFailure: no such command: '$eval', full error: {'ok': 0.0, 'errmsg': "no such command: '$ev...
FAILED tests/queryset/test_queryset.py::TestQueryset::test_exec_js_query - pymongo.errors.OperationFailure: no such command: '$eval', full error: {'ok': 0.0, 'errmsg': "no such command: '$eval'"...
FAILED tests/queryset/test_queryset.py::TestQueryset::test_item_frequencies - pymongo.errors.OperationFailure: 'map' must be of string or code type, full error: {'ok': 0.0, 'errmsg': "'map' must...
FAILED tests/queryset/test_queryset.py::TestQueryset::test_item_frequencies_normalize - pymongo.errors.OperationFailure: no such command: '$eval', full error: {'ok': 0.0, 'errmsg': "no such comm...
FAILED tests/queryset/test_queryset.py::TestQueryset::test_item_frequencies_null_values - pymongo.errors.OperationFailure: 'map' must be of string or code type, full error: {'ok': 0.0, 'errmsg':...
FAILED tests/queryset/test_queryset.py::TestQueryset::test_item_frequencies_on_embedded - pymongo.errors.OperationFailure: 'map' must be of string or code type, full error: {'ok': 0.0, 'errmsg':...
FAILED tests/queryset/test_queryset.py::TestQueryset::test_item_frequencies_with_0_values - pymongo.errors.OperationFailure: 'map' must be of string or code type, full error: {'ok': 0.0, 'errmsg...
FAILED tests/queryset/test_queryset.py::TestQueryset::test_item_frequencies_with_False_values - pymongo.errors.OperationFailure: 'map' must be of string or code type, full error: {'ok': 0.0, 'er...
FAILED tests/queryset/test_queryset.py::TestQueryset::test_item_frequencies_with_null_embedded - pymongo.errors.OperationFailure: no such command: '$eval', full error: {'ok': 0.0, 'errmsg': "no ...
FAILED tests/queryset/test_queryset.py::TestQueryset::test_map_reduce - pymongo.errors.OperationFailure: 'map' must be of string or code type, full error: {'ok': 0.0, 'errmsg': "'map' must be of...
FAILED tests/queryset/test_queryset.py::TestQueryset::test_map_reduce_custom_output - pymongo.errors.OperationFailure: 'map' must be of string or code type, full error: {'ok': 0.0, 'errmsg': "'m...
FAILED tests/queryset/test_queryset.py::TestQueryset::test_map_reduce_finalize - pymongo.errors.OperationFailure: 'map' must be of string or code type, full error: {'ok': 0.0, 'errmsg': "'map' m...
FAILED tests/queryset/test_queryset.py::TestQueryset::test_map_reduce_with_custom_object_ids - pymongo.errors.OperationFailure: 'map' must be of string or code type, full error: {'ok': 0.0, 'err...
========================================================== 16 failed, 1049 passed, 5 skipped, 1 xfailed, 56 warnings in 102.91s (0:01:42) ===========================================================

Benoit Toulet

unread,
Jan 4, 2021, 6:08:47 AM1/4/21
to MongoEngine Users
my pip freeze:
appdirs==1.4.4
astroid==2.4.2
attrs==20.3.0
backcall==0.2.0
black==20.8b1
blinker==1.4
cfgv==3.2.0
click==7.1.2
decorator==4.4.2
distlib==0.3.1
filelock==3.0.12
flake8==3.8.4
flake8-import-order==0.18.1
identify==1.5.11
iniconfig==1.1.1
ipdb==0.13.4
ipython==7.19.0
ipython-genutils==0.2.0
isort==5.7.0
jedi==0.18.0
lazy-object-proxy==1.4.3
mccabe==0.6.1
mypy-extensions==0.4.3
nodeenv==1.5.0
packaging==20.8
parso==0.8.1
pathspec==0.8.1
pexpect==4.8.0
pickleshare==0.7.5
Pillow==8.1.0
pluggy==0.13.1
pre-commit==2.9.3
prompt-toolkit==3.0.8
ptyprocess==0.7.0
py==1.10.0
pycodestyle==2.6.0
pyflakes==2.2.0
Pygments==2.7.3
pylint==2.6.0
pymongo==3.11.2
pyparsing==2.4.7
pytest==6.2.1
PyYAML==5.3.1
regex==2020.11.13
six==1.15.0
toml==0.10.2
tox==3.20.1
traitlets==5.0.5
typed-ast==1.4.2
typing-extensions==3.7.4.3
virtualenv==20.2.2
wcwidth==0.2.5
wrapt==1.12.1

Reply all
Reply to author
Forward
0 new messages