MCPcopy Create free account
hub / github.com/schematics/schematics / validate_id

Method validate_id

tests/test_functional.py:69–71  ·  view source on GitHub ↗
(self, data, value, context)

Source from the content-addressed store, hash-verified

67 id = IntType()
68
69 def validate_id(self, data, value, context):
70 if self.id:
71 raise ValidationError('Cannot change id')
72
73 p1 = Player(trusted_data={'id': 4})
74

Callers

nothing calls this directly

Calls 1

ValidationErrorClass · 0.90

Tested by

no test coverage detected