Skip to content

Commit

Permalink
Make test deterministic
Browse files Browse the repository at this point in the history
  • Loading branch information
kvesteri committed Oct 14, 2014
1 parent 27457d1 commit 74b6bfa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ Changelog
Here you can see the full list of changes between each WTForms-Alchemy release.


0.13.0 (2014-10-xx)
0.13.0 (2014-10-14)
^^^^^^^^^^^^^^^^^^^

- Make all default validators configurable in model_form_factory
- Made all default validators configurable in model_form_factory
- Added support for disabling default validators


0.12.9 (2014-08-30)
Expand Down
5 changes: 3 additions & 2 deletions tests/test_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from wtforms.validators import (
Email, InputRequired, DataRequired, Optional, NumberRange, Length
)
from wtforms_alchemy import Unique, ModelForm, ClassMap
from wtforms_alchemy import Unique, ModelForm, ClassMap, model_form_factory
from wtforms_components import TimeRange, DateRange
from tests import ModelFormTestCase

Expand All @@ -29,8 +29,9 @@ class ModelTest(self.base):
id = sa.Column(sa.Integer, primary_key=True)
test_column = sa.Column(sa.Unicode(255), unique=True)

Form = model_form_factory()
with raises(Exception):
class ModelTestForm(ModelForm):
class ModelTestForm(Form):
class Meta:
model = ModelTest

Expand Down

0 comments on commit 74b6bfa

Please sign in to comment.