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 !!!!
====================================================================================== 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) ===========================================================