MCPcopy Create free account
hub / github.com/MongoEngine/mongoengine / Number2

Class Number2

tests/queryset/test_queryset.py:4385–4386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4383 """Ensure that switching databases for a queryset is possible"""
4384
4385 class Number2(Document):
4386 n = IntField()
4387
4388 Number2.drop_collection()
4389 with switch_db(Number2, "test2") as Number2:

Callers 1

test_usingMethod · 0.85

Calls 1

IntFieldClass · 0.85

Tested by 1

test_usingMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…