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

Class Animal

tests/fields/test_file_field.py:253–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251 """Ensure you can add meta data to file"""
252
253 class Animal(Document):
254 genus = StringField()
255 family = StringField()
256 photo = FileField()
257
258 Animal.drop_collection()
259 marmot = Animal(genus="Marmota", family="Sciuridae")

Callers 2

test_file_savingMethod · 0.70

Calls 3

StringFieldClass · 0.85
FileFieldClass · 0.85
ListFieldClass · 0.85

Tested by 2

test_file_savingMethod · 0.56