Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/MongoEngine/mongoengine
/ _assert_db_equal
Method
_assert_db_equal
tests/queryset/test_modify.py:24–25 ·
view source on GitHub ↗
(self, docs)
Source
from the content-addressed store, hash-verified
22
Doc.drop_collection()
23
24
def
_assert_db_equal(self, docs):
25
assert list(Doc._collection.find().sort(
"id"
)) == docs
26
27
def
test_modify(self):
28
Doc(id=0, value=0).save()
Callers
10
test_modify
Method · 0.95
test_modify_with_new
Method · 0.95
test_modify_not_existing
Method · 0.95
test_modify_with_upsert
Method · 0.95
test_modify_with_upsert_existing
Method · 0.95
test_modify_with_upsert_with_new
Method · 0.95
test_modify_with_remove
Method · 0.95
test_find_and_modify_with_remove_not_existing
Method · 0.95
test_modify_with_order_by
Method · 0.95
test_modify_with_fields
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected