Ensure that a QuerySet is correctly initialised by QuerySetManager.
(self)
| 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): |
nothing calls this directly
no test coverage detected