Skip to content

Commit

Permalink
test(httperror): add missing test
Browse files Browse the repository at this point in the history
  • Loading branch information
CaselIT committed Feb 1, 2020
1 parent af547cd commit f1d1765
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_httperror.py
Original file line number Diff line number Diff line change
Expand Up @@ -857,3 +857,8 @@ def test_title_default_message_if_none(self, client):

assert response.status == headers['X-Error-Status']
assert response.json['title'] == headers['X-Error-Status']


def test_kw_only():
with pytest.raises(TypeError, match='positional argument'):
raise falcon.HTTPError(falcon.HTTP_BAD_REQUEST, 'foo', 'bar')

0 comments on commit f1d1765

Please sign in to comment.