-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #119 from mikeywaites/feature/fix-int-cast
fix int casting
- Loading branch information
Showing
4 changed files
with
14 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.0.0-rc3 | ||
1.0.0-rc4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,12 @@ def test_integer_input(): | |
field.marshal(mapper_session) | ||
assert output == {'name': 2} | ||
|
||
output = {} | ||
mapper_session = get_mapper_session( | ||
data={'name': '2', 'email': '[email protected]'}, output=output) | ||
field.marshal(mapper_session) | ||
assert output == {'name': 2} | ||
|
||
|
||
def test_integer_field_invalid_type(): | ||
|
||
|
@@ -122,6 +128,10 @@ def test_min_max(): | |
field.marshal(mapper_session) | ||
assert output == {'age': 25} | ||
|
||
mapper_session = get_mapper_session(data={'age': '25'}, output=output) | ||
field.marshal(mapper_session) | ||
assert output == {'age': 25} | ||
|
||
|
||
def test_is_valid_decimal_pipe(): | ||
"""test piping data through is_valid_decimal. | ||
|