Skip to content

Commit

Permalink
Update tests for PR wtforms#9 and add to CHANGES
Browse files Browse the repository at this point in the history
  • Loading branch information
mlenzen committed Feb 6, 2020
1 parent 0be8eb3 commit e13976e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ Version {{UNREALEASED}}
timheap_)
- Use SQLAlchemy's Column.doc for WTForm's Field.description (`PR #10`_ from
timheap_)
- Do not assume not-nullable means Required for Boolean columns (`PR #9`_ from
timheap_)

.. _PR #1: https://github.com/mlenzen/wtforms-sqlalchemy/pull/1
.. _timheap: https://github.com/timheap
.. _PR #4: https://github.com/mlenzen/wtforms-sqlalchemy/pull/4
.. _msouth: https://github.com/msouth
.. _PR #6: https://github.com/mlenzen/wtforms-sqlalchemy/pull/6
.. _PR #9: https://github.com/mlenzen/wtforms-sqlalchemy/pull/9
.. _PR #10: https://github.com/mlenzen/wtforms-sqlalchemy/pull/10

Version 0.2
Expand Down
4 changes: 1 addition & 3 deletions tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,7 @@ def test_auto_validators(self):
student_form = model_form(self.Student, self.sess)()
assert contains_validator(student_form.dob, Optional)
assert contains_validator(student_form.full_name, Required)
assert not contains_validator(course_form.has_prereqs, Optional)
assert contains_validator(course_form.has_prereqs, Required)
assert contains_validator(course_form.boolean_nullable, Optional)
assert not contains_validator(course_form.has_prereqs, Required)
assert not contains_validator(course_form.boolean_nullable, Required)

def test_field_args(self):
Expand Down

0 comments on commit e13976e

Please sign in to comment.