In the MySQL mock, if you omit a field it can be any value including null, and if you give it the value None then the mock checks that it IS NULL.
Sometimes I need to confirm that the field has a non-null value, but allow that value to be anything. I.e. IS NOT NULL. This seems like a use case for validation.ANY; that currently tries to see if the field = 'TS_ANY'.
In the MySQL mock, if you omit a field it can be any value including
null
, and if you give it the valueNone
then the mock checks that itIS NULL
.Sometimes I need to confirm that the field has a non-null value, but allow that value to be anything. I.e.
IS NOT NULL
. This seems like a use case forvalidation.ANY
; that currently tries to see if thefield = 'TS_ANY'
.See also #23