Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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_saving
Method · 0.70
test_complex_field_filefield
Method · 0.70
Calls
3
StringField
Class · 0.85
FileField
Class · 0.85
ListField
Class · 0.85
Tested by
2
test_file_saving
Method · 0.56
test_complex_field_filefield
Method · 0.56