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

Method test_initialisation

tests/queryset/test_queryset.py:71–79  ·  view source on GitHub ↗

Ensure that a QuerySet is correctly initialised by QuerySetManager.

(self)

Source from the content-addressed store, hash-verified

69 self.mongodb_version = get_mongodb_version()
70
71 def test_initialisation(self):
72 """Ensure that a QuerySet is correctly initialised by QuerySetManager."""
73 assert isinstance(self.Person.objects, QuerySet)
74 assert (
75 self.Person.objects._collection.name == self.Person._get_collection_name()
76 )
77 assert isinstance(
78 self.Person.objects._collection, pymongo.collection.Collection
79 )
80
81 def test_cannot_perform_joins_references(self):
82 class BlogPost(Document):

Callers

nothing calls this directly

Calls 1

_get_collection_nameMethod · 0.45

Tested by

no test coverage detected