Coverage for 956b50dc9ad685ef3a2b6cc3159f34d9d43b3830: 99%

Files Functions Classes

coverage.py v7.12.0, created at 2025-12-07 08:37 +0000

File function   statements missing excluded   coverage
docs_src / advanced_tutorial / model_inheritance / tutorial000.py configuration   2 0 0   100%
docs_src / advanced_tutorial / model_inheritance / tutorial000.py create_data   3 0 0   100%
docs_src / advanced_tutorial / model_inheritance / tutorial000.py retrieve_content   3 0 0   100%
docs_src / advanced_tutorial / model_inheritance / tutorial000.py retrieve_text   3 0 0   100%
docs_src / advanced_tutorial / model_inheritance / tutorial000.py retrieve_video   3 0 0   100%
docs_src / advanced_tutorial / model_inheritance / tutorial000.py main   5 0 0   100%
docs_src / advanced_tutorial / model_inheritance / tutorial000.py (no function)   24 0 2   100%
docs_src / advanced_tutorial / multiple_database / tutorial000.py configuration   2 0 0   100%
docs_src / advanced_tutorial / multiple_database / tutorial000.py create_data   1 0 0   100%
docs_src / advanced_tutorial / multiple_database / tutorial000.py retrieve_log   3 0 0   100%
docs_src / advanced_tutorial / multiple_database / tutorial000.py update_log   4 0 0   100%
docs_src / advanced_tutorial / multiple_database / tutorial000.py main   4 0 0   100%
docs_src / advanced_tutorial / multiple_database / tutorial000.py (no function)   12 0 2   100%
docs_src / async_tutorial / async_example.py main   8 0 0   100%
docs_src / async_tutorial / async_example.py (no function)   9 0 0   100%
docs_src / async_tutorial / sync_example.py main   8 0 0   100%
docs_src / async_tutorial / sync_example.py (no function)   7 0 2   100%
docs_src / overview.py (no function)   22 0 0   100%
docs_src / tutorial / aggregate / tutorial000.py configuration   2 0 0   100%
docs_src / tutorial / aggregate / tutorial000.py create_players   19 0 0   100%
docs_src / tutorial / aggregate / tutorial000.py number_of_player_by_country   5 0 0   100%
docs_src / tutorial / aggregate / tutorial000.py main   3 0 0   100%
docs_src / tutorial / aggregate / tutorial000.py (no function)   13 0 2   100%
docs_src / tutorial / create / tutorial000.py create_documents   4 0 0   100%
docs_src / tutorial / create / tutorial000.py main   2 0 0   100%
docs_src / tutorial / create / tutorial000.py (no function)   9 0 2   100%
docs_src / tutorial / delete / tutorial000.py configuration   2 0 0   100%
docs_src / tutorial / delete / tutorial000.py create_players   19 0 0   100%
docs_src / tutorial / delete / tutorial000.py delete_document   2 0 0   100%
docs_src / tutorial / delete / tutorial000.py delete_one_document   2 0 0   100%
docs_src / tutorial / delete / tutorial000.py delete_many_document   2 0 0   100%
docs_src / tutorial / delete / tutorial000.py main   5 0 0   100%
docs_src / tutorial / delete / tutorial000.py (no function)   15 0 2   100%
docs_src / tutorial / find_and_filter / tutorial000.py create_documents   19 0 0   100%
docs_src / tutorial / find_and_filter / tutorial000.py read_documents   4 0 0   100%
docs_src / tutorial / find_and_filter / tutorial000.py filter_documents   4 0 0   100%
docs_src / tutorial / find_and_filter / tutorial000.py read_documents_with_projection   4 0 0   100%
docs_src / tutorial / find_and_filter / tutorial000.py main   6 0 0   100%
docs_src / tutorial / find_and_filter / tutorial000.py (no function)   14 0 2   100%
docs_src / tutorial / find_and_sort / tutorial000.py configuration   2 0 0   100%
docs_src / tutorial / find_and_sort / tutorial000.py create_players   19 0 0   100%
docs_src / tutorial / find_and_sort / tutorial000.py sort_by_id_desc   4 0 0   100%
docs_src / tutorial / find_and_sort / tutorial000.py sort_with_multiple_key   4 0 0   100%
docs_src / tutorial / find_and_sort / tutorial000.py main   4 0 0   100%
docs_src / tutorial / find_and_sort / tutorial000.py (no function)   14 0 2   100%
docs_src / tutorial / find_limit_and_skip / tutorial000.py configuration   2 0 0   100%
docs_src / tutorial / find_limit_and_skip / tutorial000.py create_players   19 0 0   100%
docs_src / tutorial / find_limit_and_skip / tutorial000.py limit_data   4 0 0   100%
docs_src / tutorial / find_limit_and_skip / tutorial000.py skip_data   4 0 0   100%
docs_src / tutorial / find_limit_and_skip / tutorial000.py skip_and_limit_data   4 0 0   100%
docs_src / tutorial / find_limit_and_skip / tutorial000.py implement_pagination   6 0 0   100%
docs_src / tutorial / find_limit_and_skip / tutorial000.py main   6 0 0   100%
docs_src / tutorial / find_limit_and_skip / tutorial000.py (no function)   16 0 2   100%
docs_src / tutorial / find_one_document / tutorial000.py configuration   2 0 0   100%
docs_src / tutorial / find_one_document / tutorial000.py create_players   19 0 0   100%
docs_src / tutorial / find_one_document / tutorial000.py find_one_document   2 0 0   100%
docs_src / tutorial / find_one_document / tutorial000.py find_last_document   2 0 0   100%
docs_src / tutorial / find_one_document / tutorial000.py main   4 0 0   100%
docs_src / tutorial / find_one_document / tutorial000.py (no function)   14 0 2   100%
docs_src / tutorial / find_raw / tutorial000.py configuration   2 0 0   100%
docs_src / tutorial / find_raw / tutorial000.py create_players   19 0 0   100%
docs_src / tutorial / find_raw / tutorial000.py filter_documents   4 0 0   100%
docs_src / tutorial / find_raw / tutorial000.py pymongo_find_and_find_raw_comparison   6 0 0   100%
docs_src / tutorial / find_raw / tutorial000.py main   4 0 0   100%
docs_src / tutorial / find_raw / tutorial000.py (no function)   15 0 2   100%
docs_src / tutorial / get_document / tutorial000.py configuration   2 0 0   100%
docs_src / tutorial / get_document / tutorial000.py create_players   19 0 0   100%
docs_src / tutorial / get_document / tutorial000.py get_document   5 1 0   80%
docs_src / tutorial / get_document / tutorial000.py get_last_document   2 0 0   100%
docs_src / tutorial / get_document / tutorial000.py main   5 0 0   100%
docs_src / tutorial / get_document / tutorial000.py (no function)   15 0 2   100%
docs_src / tutorial / get_or_create / tutorial000.py create_players   19 0 0   100%
docs_src / tutorial / get_or_create / tutorial000.py configuration   2 0 0   100%
docs_src / tutorial / get_or_create / tutorial000.py general_process   7 0 0   100%
docs_src / tutorial / get_or_create / tutorial000.py get_or_create_document   4 0 0   100%
docs_src / tutorial / get_or_create / tutorial000.py main   5 0 0   100%
docs_src / tutorial / get_or_create / tutorial000.py (no function)   14 0 2   100%
docs_src / tutorial / indexes / tutorial000.py create_documents   2 0 0   100%
docs_src / tutorial / indexes / tutorial000.py main   3 0 0   100%
docs_src / tutorial / indexes / tutorial000.py (no function)   11 0 2   100%
docs_src / tutorial / indexes / tutorial001.py create_documents   2 0 0   100%
docs_src / tutorial / indexes / tutorial001.py main   3 0 0   100%
docs_src / tutorial / indexes / tutorial001.py (no function)   11 0 2   100%
docs_src / tutorial / relation / foreignkey_relationship / tutorial000.py configuration   2 0 0   100%
docs_src / tutorial / relation / foreignkey_relationship / tutorial000.py insert_data   3 0 0   100%
docs_src / tutorial / relation / foreignkey_relationship / tutorial000.py read_data   3 0 0   100%
docs_src / tutorial / relation / foreignkey_relationship / tutorial000.py read_data_with_related_field   4 0 0   100%
docs_src / tutorial / relation / foreignkey_relationship / tutorial000.py read_related_data_of_specific_field   4 0 0   100%
docs_src / tutorial / relation / foreignkey_relationship / tutorial000.py read_related_data_for_single_obj   9 0 0   100%
docs_src / tutorial / relation / foreignkey_relationship / tutorial000.py main   6 0 0   100%
docs_src / tutorial / relation / foreignkey_relationship / tutorial000.py (no function)   19 0 2   100%
docs_src / tutorial / relation / many_to_many_relationship / tutorial000.py insert_data   15 0 0   100%
docs_src / tutorial / relation / many_to_many_relationship / tutorial000.py read_data   4 0 0   100%
docs_src / tutorial / relation / many_to_many_relationship / tutorial000.py configuration   2 0 0   100%
docs_src / tutorial / relation / many_to_many_relationship / tutorial000.py main   3 0 0   100%
docs_src / tutorial / relation / many_to_many_relationship / tutorial000.py (no function)   25 0 2   100%
docs_src / tutorial / relation / many_to_many_relationship / tutorial001.py insert_data   9 0 0   100%
docs_src / tutorial / relation / many_to_many_relationship / tutorial001.py read_data   2 0 0   100%
docs_src / tutorial / relation / many_to_many_relationship / tutorial001.py configuration   2 0 0   100%
docs_src / tutorial / relation / many_to_many_relationship / tutorial001.py main   3 0 0   100%
docs_src / tutorial / relation / many_to_many_relationship / tutorial001.py (no function)   21 0 2   100%
docs_src / tutorial / transaction / tutorial000.py create_documents   8 2 0   75%
docs_src / tutorial / transaction / tutorial000.py update_documents   11 2 0   82%
docs_src / tutorial / transaction / tutorial000.py delete_documents   9 2 0   78%
docs_src / tutorial / transaction / tutorial000.py main   4 0 0   100%
docs_src / tutorial / transaction / tutorial000.py (no function)   12 0 2   100%
docs_src / tutorial / update / tutorial000.py create_players   19 0 0   100%
docs_src / tutorial / update / tutorial000.py configuration   2 0 0   100%
docs_src / tutorial / update / tutorial000.py update_document   3 0 0   100%
docs_src / tutorial / update / tutorial000.py update_one_document   2 0 0   100%
docs_src / tutorial / update / tutorial000.py update_many_document   2 0 0   100%
docs_src / tutorial / update / tutorial000.py main   5 0 0   100%
docs_src / tutorial / update / tutorial000.py (no function)   15 0 2   100%
mongodb_odm / __init__.py (no function)   24 0 0   100%
mongodb_odm / connection.py _get_connection_client   1 0 0   100%
mongodb_odm / connection.py _get_async_connection_client   1 0 0   100%
mongodb_odm / connection.py connect   23 0 0   100%
mongodb_odm / connection.py _disconnect_common   5 0 0   100%
mongodb_odm / connection.py disconnect   12 0 0   100%
mongodb_odm / connection.py adisconnect   10 0 0   100%
mongodb_odm / connection.py get_client   8 0 0   100%
mongodb_odm / connection.py db   14 0 0   100%
mongodb_odm / connection.py drop_database   2 0 0   100%
mongodb_odm / connection.py adrop_database   3 0 0   100%
mongodb_odm / connection.py is_async   3 0 0   100%
mongodb_odm / connection.py (no function)   22 0 0   100%
mongodb_odm / data_conversion.py ODMObj.__repr__   2 0 0   100%
mongodb_odm / data_conversion.py ODMObj.__str__   1 0 0   100%
mongodb_odm / data_conversion.py ODMObj.__eq__   1 0 0   100%
mongodb_odm / data_conversion.py ODMObj.__iter__   1 0 0   100%
mongodb_odm / data_conversion.py ODMObj.dict   1 0 0   100%
mongodb_odm / data_conversion.py _to_dict   8 0 0   100%
mongodb_odm / data_conversion.py _to_obj   10 0 0   100%
mongodb_odm / data_conversion.py dict2obj   1 0 0   100%
mongodb_odm / data_conversion.py (no function)   11 0 0   100%
mongodb_odm / exceptions.py (no function)   10 0 0   100%
mongodb_odm / fields.py Field   2 0 0   100%
mongodb_odm / fields.py RelationshipInfo.__init__   2 0 0   100%
mongodb_odm / fields.py Relationship   2 0 0   100%
mongodb_odm / fields.py (no function)   14 0 0   100%
mongodb_odm / models.py _clear_cache   4 0 0   100%
mongodb_odm / models.py ODMMeta.__getattr__   11 2 0   82%
mongodb_odm / models.py _BaseDocument.__setattr__   4 0 0   100%
mongodb_odm / models.py _BaseDocument.dict   1 0 0   100%
mongodb_odm / models.py _BaseDocument.__get_collection_class   9 0 0   100%
mongodb_odm / models.py _BaseDocument.__get_collection_config   10 0 0   100%
mongodb_odm / models.py _BaseDocument._database_name   2 0 0   100%
mongodb_odm / models.py _BaseDocument._get_collection_name   1 0 0   100%
mongodb_odm / models.py _BaseDocument._get_child   1 0 0   100%
mongodb_odm / models.py _BaseDocument._has_children   1 0 0   100%
mongodb_odm / models.py _BaseDocument._get_collection   3 0 0   100%
mongodb_odm / models.py _BaseDocument._async_get_collection   3 0 0   100%
mongodb_odm / models.py _BaseDocument._db   1 0 0   100%
mongodb_odm / models.py _BaseDocument.get_inheritance_key   1 0 0   100%
mongodb_odm / models.py _BaseDocument.get_parent_child_fields   6 0 0   100%
mongodb_odm / models.py _BaseDocument.get_relational_field_info   6 0 0   100%
mongodb_odm / models.py _BaseDocument.get_exclude_fields   2 0 0   100%
mongodb_odm / models.py _BaseDocument.to_mongo   1 0 0   100%
mongodb_odm / models.py _BaseDocument.start_session   4 0 0   100%
mongodb_odm / models.py _BaseDocument.astart_session   4 0 0   100%
mongodb_odm / models.py _BaseDocument.__str__   1 0 0   100%
mongodb_odm / models.py Document.__init__   8 0 0   100%
mongodb_odm / models.py Document._prepare_crate_data   4 0 0   100%
mongodb_odm / models.py Document._update_new_id   1 0 0   100%
mongodb_odm / models.py Document.create   6 0 0   100%
mongodb_odm / models.py Document.acreate   5 0 0   100%
mongodb_odm / models.py Document._validate_and_prepare_filter   6 0 0   100%
mongodb_odm / models.py Document.find_raw   7 0 0   100%
mongodb_odm / models.py Document.afind_raw   7 0 0   100%
mongodb_odm / models.py Document._prepare_query   7 0 0   100%
mongodb_odm / models.py Document._get_child_models   7 1 0   86%
mongodb_odm / models.py Document._prepare_class_instance   5 0 0   100%
mongodb_odm / models.py Document.find   8 0 0   100%
mongodb_odm / models.py Document.afind   8 0 0   100%
mongodb_odm / models.py Document.find_one   13 0 0   100%
mongodb_odm / models.py Document.afind_one   13 0 0   100%
mongodb_odm / models.py Document.get   4 0 0   100%
mongodb_odm / models.py Document.aget   4 0 0   100%
mongodb_odm / models.py Document.get_or_create   4 0 0   100%
mongodb_odm / models.py Document.aget_or_create   5 0 0   100%
mongodb_odm / models.py Document.count_documents   3 0 0   100%
mongodb_odm / models.py Document.acount_documents   3 0 0   100%
mongodb_odm / models.py Document.exists   3 0 0   100%
mongodb_odm / models.py Document.aexists   3 0 0   100%
mongodb_odm / models.py Document._prepare_aggregation_pipeline   7 0 0   100%
mongodb_odm / models.py Document._get_aggregation_obj   3 0 0   100%
mongodb_odm / models.py Document.aggregate   5 0 0   100%
mongodb_odm / models.py Document.aaggregate   5 0 0   100%
mongodb_odm / models.py Document._get_pipeline_for_random_one   1 0 0   100%
mongodb_odm / models.py Document.get_random_one   5 0 0   100%
mongodb_odm / models.py Document.aget_random_one   5 0 0   100%
mongodb_odm / models.py Document._get_update_dict   10 0 0   100%
mongodb_odm / models.py Document.update   3 0 0   100%
mongodb_odm / models.py Document.aupdate   3 0 0   100%
mongodb_odm / models.py Document.update_one   3 0 0   100%
mongodb_odm / models.py Document.aupdate_one   3 0 0   100%
mongodb_odm / models.py Document.update_many   3 0 0   100%
mongodb_odm / models.py Document.aupdate_many   3 0 0   100%
mongodb_odm / models.py Document.delete   1 0 0   100%
mongodb_odm / models.py Document.adelete   1 0 0   100%
mongodb_odm / models.py Document.delete_one   4 0 0   100%
mongodb_odm / models.py Document.adelete_one   3 0 0   100%
mongodb_odm / models.py Document.delete_many   3 0 0   100%
mongodb_odm / models.py Document.adelete_many   3 0 0   100%
mongodb_odm / models.py Document.bulk_write   2 0 0   100%
mongodb_odm / models.py Document.abulk_write   2 0 0   100%
mongodb_odm / models.py Document._get_loadable_fields_info   11 1 0   91%
mongodb_odm / models.py Document._get_instance_related_info   4 0 0   100%
mongodb_odm / models.py Document._get_objects_and_update_fields_id   6 0 0   100%
mongodb_odm / models.py Document.load_related   15 0 0   100%
mongodb_odm / models.py Document._async_get_objects_and_update_fields_id   6 0 0   100%
mongodb_odm / models.py Document.aload_related   15 0 0   100%
mongodb_odm / models.py (no function)   166 0 0   100%
mongodb_odm / types.py ODMObjectId.__get_pydantic_core_schema__   1 0 0   100%
mongodb_odm / types.py ODMObjectId.validate   7 0 0   100%
mongodb_odm / types.py ObjectIdStr.__get_pydantic_core_schema__   1 0 0   100%
mongodb_odm / types.py ObjectIdStr.validate   8 0 0   100%
mongodb_odm / types.py ObjectIdStr.__get_pydantic_json_schema__   3 3 0   0%
mongodb_odm / types.py (no function)   23 0 0   100%
mongodb_odm / utils / __init__.py (no function)   0 0 0   100%
mongodb_odm / utils / _internal_models.py RelationalFieldInfo.__init__   3 0 0   100%
mongodb_odm / utils / _internal_models.py (no function)   18 0 0   100%
mongodb_odm / utils / apply_indexes.py _get_dict_db_indexes   8 0 0   100%
mongodb_odm / utils / apply_indexes.py _get_dict_model_indexes   12 0 0   100%
mongodb_odm / utils / apply_indexes.py _check_exists_in_model_indexes   19 0 0   100%
mongodb_odm / utils / apply_indexes.py _check_exists_in_model_indexes.mark_as_exist   2 0 0   100%
mongodb_odm / utils / apply_indexes.py _get_calculated_indexes_for_collection   9 0 0   100%
mongodb_odm / utils / apply_indexes.py _get_model_indexes   3 0 0   100%
mongodb_odm / utils / apply_indexes.py _get_all_indexes   15 0 0   100%
mongodb_odm / utils / apply_indexes.py _get_all_indexes.get_operation_obj   1 0 0   100%
mongodb_odm / utils / apply_indexes.py _get_collection   1 0 0   100%
mongodb_odm / utils / apply_indexes.py _get_created_and_deleted_indexes_count   4 0 0   100%
mongodb_odm / utils / apply_indexes.py _get_collection_and_indexes   6 0 0   100%
mongodb_odm / utils / apply_indexes.py _sync_get_database_indexes   4 0 0   100%
mongodb_odm / utils / apply_indexes.py _sync_apply_indexes_to_db   12 0 0   100%
mongodb_odm / utils / apply_indexes.py _sync_apply_indexes_for_a_collection   5 0 0   100%
mongodb_odm / utils / apply_indexes.py _async_get_database_indexes   4 0 0   100%
mongodb_odm / utils / apply_indexes.py _async_apply_indexes_to_db   12 0 0   100%
mongodb_odm / utils / apply_indexes.py _async_apply_indexes_for_a_collection   5 0 0   100%
mongodb_odm / utils / apply_indexes.py log_final_results   6 0 0   100%
mongodb_odm / utils / apply_indexes.py apply_indexes   8 0 0   100%
mongodb_odm / utils / apply_indexes.py async_apply_indexes   8 0 0   100%
mongodb_odm / utils / apply_indexes.py (no function)   38 0 0   100%
mongodb_odm / utils / utils.py camel_to_snake   1 0 0   100%
mongodb_odm / utils / utils.py get_database_name   3 0 0   100%
mongodb_odm / utils / utils.py convert_model_to_collection   4 0 0   100%
mongodb_odm / utils / utils.py _is_union_type   1 0 0   100%
mongodb_odm / utils / utils.py get_type_from_field   17 1 0   94%
mongodb_odm / utils / utils.py get_model_fields   1 0 0   100%
mongodb_odm / utils / utils.py _get_fields_info   9 0 0   100%
mongodb_odm / utils / utils.py get_relationship_fields_info   6 0 0   100%
mongodb_odm / utils / utils.py (no function)   18 0 0   100%
mongodb_odm / utils / validation.py validate_filter_dict   21 0 0   100%
mongodb_odm / utils / validation.py (no function)   4 0 0   100%
Total     1874 15 40   99%

No items found using the specified filter.