Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/MongoEngine/mongoengine
/ TestFile
Class
TestFile
tests/fields/test_file_field.py:231–233 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
229
""
"Ensure that each instance of a FileField is unique"
""
230
231
class
TestFile(Document):
232
name = StringField()
233
the_file = FileField()
234
235
# First instance
236
test_file = TestFile()
Callers
7
test_file_uniqueness
Method · 0.85
test_file_reassigning
Method · 0.85
test_file_boolean
Method · 0.85
test_file_cmp
Method · 0.85
test_file_disk_space
Method · 0.85
test_image_field_reassigning
Method · 0.85
test_file_multidb
Method · 0.85
Calls
3
StringField
Class · 0.85
FileField
Class · 0.85
ImageField
Class · 0.85
Tested by
7
test_file_uniqueness
Method · 0.68
test_file_reassigning
Method · 0.68
test_file_boolean
Method · 0.68
test_file_cmp
Method · 0.68
test_file_disk_space
Method · 0.68
test_image_field_reassigning
Method · 0.68
test_file_multidb
Method · 0.68