Skip to content

Commit

Permalink
[#1692] fix int_validator tests more
Browse files Browse the repository at this point in the history
  • Loading branch information
wardi committed Apr 29, 2014
1 parent f027022 commit 0d00ac2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/new_tests/logic/test_validators.py
Expand Up @@ -467,7 +467,7 @@ def test_int_validator_convert(self):
converted_values = [
(42.0, 42),
(Fraction(2, 1), 2),
(Decimal("19.00", 19)),
(Decimal("19.00"), 19),
("528735648764587235684376", 528735648764587235684376),
("", None),
(" \n", None),
Expand All @@ -488,7 +488,7 @@ def test_int_validator_invalid(self):
Fraction(3, 2),
Decimal("19.99"),
1 + 1j,
1 + 0j, # int(complex) fails, so expect the same
1 + 0j, # int(complex) fails, so expect the same
]
for v in invalid_values:
raises_Invalid(validators.int_validator)(v, None)
Expand Down

0 comments on commit 0d00ac2

Please sign in to comment.