Skip to content

Commit

Permalink
Specify desired change in changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycrosley committed Nov 3, 2015
1 parent b00121d commit 694def4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,4 @@ Changelog

### 1.6.7
- Improved the `smart_boolean` type even further, to allow 0, 1, t, f strings as input
- Enabled normal boolean type to easily work with cli apps, by having it interact via 'store_true'
6 changes: 6 additions & 0 deletions tests/test_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,14 @@ def test_mapping():
def test_smart_boolean():
'''Test to ensure that the smart boolean type works as expected'''
assert hug.types.smart_boolean('true') == True
assert hug.types.smart_boolean('t') == True
assert hug.types.smart_boolean('1') == True
assert hug.types.smart_boolean(1) == True
assert hug.types.smart_boolean('') == False
assert hug.types.smart_boolean('false') == False
assert hug.types.smart_boolean('f') == False
assert hug.types.smart_boolean('0') == False
assert hug.types.smart_boolean(0) == False
assert hug.types.smart_boolean(True) == True
assert hug.types.smart_boolean(None) == False
assert hug.types.smart_boolean(False) == False
Expand Down

0 comments on commit 694def4

Please sign in to comment.