MCPcopy Index your code
hub / github.com/MongoEngine/mongoengine / DataDoc

Class DataDoc

tests/document/test_inheritance.py:33–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 meta = {"allow_inheritance": True}
32
33 class DataDoc(Document):
34 name = StringField()
35 embed = EmbeddedDocumentField(EmbedData)
36 meta = {"allow_inheritance": True}
37
38 test_doc = DataDoc(name="test", embed=EmbedData(data="data"))
39 assert test_doc._cls == "DataDoc"

Callers 1

test_constructor_clsMethod · 0.85

Calls 2

StringFieldClass · 0.90

Tested by 1

test_constructor_clsMethod · 0.68