MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / SomeValidator

Class SomeValidator

test/orm/test_validators.py:261–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259 canary = Mock()
260
261 class SomeValidator:
262 def __call__(self, obj, key, name):
263 canary(key, name)
264 ne_(name, "fred")
265 return name + " modified"
266
267 class User(ComparableEntity):
268 sv = validates("name")(SomeValidator())

Callers 1

UserClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected