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

Class Blog

tests/document/test_instance.py:2438–2445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2436 with pytest.raises(InvalidDocumentError):
2437
2438 class Blog(Document):
2439 content = StringField()
2440 authors = MapField(
2441 ReferenceField(self.Person, reverse_delete_rule=CASCADE)
2442 )
2443 reviewers = DictField(
2444 field=ReferenceField(self.Person, reverse_delete_rule=NULLIFY)
2445 )
2446
2447 with pytest.raises(InvalidDocumentError):
2448

Callers

nothing calls this directly

Calls 4

StringFieldClass · 0.85
MapFieldClass · 0.85
ReferenceFieldClass · 0.85
DictFieldClass · 0.85

Tested by

no test coverage detected