| 439 | """Saving an abstract document should fail.""" |
| 440 | |
| 441 | class Doc(Document): |
| 442 | name = StringField() |
| 443 | meta = {"abstract": True} |
| 444 | |
| 445 | with pytest.raises(InvalidDocumentError): |
| 446 | Doc(name="aaa").save() |
nothing calls this directly
no test coverage detected