20 Commits

Author SHA1 Message Date
graham-dds
b3dd32f3f7 Allow Falsey values for IsNumber validator
We should use Required() instead to ensure data is present, if that's the
desired behavior
2020-01-22 15:18:42 -05:00
leigh-mil
ab9b62f54b Update validators and filter to remove strings that contain only
whitespace

The validator ListItemRequired() was only checking for None and an empty
string, not for strings that were multiple whitespace characters. This
fixes this issue by checking each item with regex to make sure it
contains non whitespace characters

The filter remove_empty_string() also was not checking for strings that
were multiple whitespace characters. This was also fixed by using regex
tomake sure that the string contains non whitespace characters, and also
clips any trailing whitespace.
2019-11-12 13:07:50 -05:00
George Drummond
05ed1c6d68
Remove unused validation 2019-06-17 13:33:47 -04:00
dandds
49332c5d6e Only raise FileLength validation error on files 2019-06-10 19:26:44 -04:00
dandds
318257e32c File length validation for task order upload 2019-06-06 13:57:07 -04:00
Montana
86c6044ca1 Catch None values for IsNumber validator 2019-05-15 11:41:03 -04:00
Montana
d51663e075 Refactor RequiredIf validator 2019-01-20 09:50:20 -05:00
Montana
67108484be New custom validator RequiredIf 2019-01-18 09:39:52 -05:00
Montana
684786bffc Remove unused import 2019-01-17 10:45:13 -05:00
Montana
ae494d3bb5 Refactor RequiredIfNot custom validator, add tests 2019-01-16 11:00:51 -05:00
leigh-mil
6ad4f4c077 Fix name of test 2018-10-24 10:08:49 -04:00
leigh-mil
d474091f5e Add more invalid test cases 2018-10-23 17:15:50 -04:00
leigh-mil
aad62853bc Update test name 2018-10-23 13:18:01 -04:00
leigh-mil
13763d8750 Change name of validator to Name because it is more descriptive 2018-10-23 11:22:16 -04:00
leigh-mil
6a15a6ca7b Update tests to reflect new Alphabet validators 2018-10-18 16:35:28 -04:00
richard-dds
92080abe0a Rename test to be more accurate 2018-08-24 15:26:38 -04:00
richard-dds
9dcbb814de Formatting 2018-08-24 13:55:14 -04:00
richard-dds
66877b46bd Ensure that project environment names are unique 2018-08-24 13:53:25 -04:00
richard-dds
daa8634cb4 Format project 2018-08-23 16:25:36 -04:00
Patrick Smith
3925007489 Add tests for some validators 2018-07-11 10:54:04 -04:00