Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Commit

Permalink
Merge pull request #137 from postatum/112651693_pyramid_16_suport
Browse files Browse the repository at this point in the history
Support pyramid 1.6.1
  • Loading branch information
jstoiko committed Feb 9, 2016
2 parents 9614aea + f69e848 commit b0cea3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nefertari/scaffolds/nefertari_starter/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ nefertari

cryptacular==1.4.1
Paste==2.0.2
pyramid==1.5.7
pyramid
waitress==0.8.9

-e .
4 changes: 3 additions & 1 deletion tests/test_json_httpexceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,15 @@ def test_exception_response(self):
jsonex.STATUS_MAP.pop(12345, None)

def test_status_map(self):
assert list(sorted(jsonex.STATUS_MAP.keys())) == [
codes = [
200, 201, 202, 203, 204, 205, 206,
300, 301, 302, 303, 304, 305, 307,
400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410,
411, 412, 413, 414, 415, 416, 417, 422, 423, 424,
500, 501, 502, 503, 504, 505, 507
]
for code in codes:
assert code in jsonex.STATUS_MAP
for code_exc in jsonex.STATUS_MAP.values():
assert hasattr(jsonex, code_exc.__name__)

Expand Down

0 comments on commit b0cea3e

Please sign in to comment.