shanejansen / touchstone

Touchstone is a testing framework for your services that focuses on component, end-to-end, and exploratory testing.
16 stars 2 forks source link

Enable testing NOT NULL in DB via ANY #25

Closed ScottFreeCode closed 3 years ago

ScottFreeCode commented 3 years ago

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'.

See also #23