Skip to content

Commit

Permalink
Tagging for release
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Arcangeli committed Jan 3, 2014
1 parent f02b487 commit b98c88c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
0.0.0
0.1.0
-----
* First version
* Package released into the wild
15 changes: 14 additions & 1 deletion pyramid_duh/tests/test_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,20 @@ def test_validate_failure(self):
validate = lambda x: x.startswith('foo')

@argify(field=(string_type, validate))
def base_req(request, field):
def base_req(request, field): # pragma: no cover
return field
context = object()
request = DummyRequest()
request.params = {'field': 'myfield'}
with self.assertRaises(HTTPBadRequest):
base_req(context, request)

def test_validate_kwargs_failure(self):
""" if argify fails validation check for kwargs, raise exception """
validate = lambda x: x.startswith('foo')

@argify(field=(string_type, validate))
def base_req(request, field=None): # pragma: no cover
return field
context = object()
request = DummyRequest()
Expand Down

0 comments on commit b98c88c

Please sign in to comment.