Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for new validation code #17

Open
jrdh opened this issue Sep 14, 2022 · 0 comments
Open

Add tests for new validation code #17

jrdh opened this issue Sep 14, 2022 · 0 comments
Assignees

Comments

@jrdh
Copy link
Member

jrdh commented Sep 14, 2022

Relates to NaturalHistoryMuseum/ckanext-nhm#570 and #16.

Things to test on routes._helpers.validate:

  • 'save' with or without a value is ignored
  • test a single empty field
  • test multiple empty fields
  • test None as an empty value
  • test with '' as an empty value
  • test with a not currently in use field name

Thoughts:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants