11 Commits

Author SHA1 Message Date
Chris Dent
1440eeb13b Fix (some) tests for modern flask and pep8
Somewhere along the way, WSME and flask/werkzeug have got out of sync
and tests have started failing. Since there aren't regular contributions
to WSME we don't catch these changes, so this may have happened months
or years ago.

I have adjusted tests to attempt to account for what I can, but one test
fails to work so I have marked it as an xfail. It works correctly with
werkzeug 1.13.x but not later. Since WSME is in something worse than
maintenance mode, I'm not inclined to fix this.

pep8/flake8 in python3 is more strict than python. The gate now
runs the pep8 jobs using python3 by default, so the local jobs
should as well. This changes the job and also fixes the new problems it
points out.

There are other failures, but they are present in master as well, so
leaving that for other changes.

Change-Id: I57ae0405e0d6ddba0bb1dac93020fb08a0fc7c89
2018-04-09 13:24:20 +01:00
Ryan Petrello
62725bb773 Add improved support for HTTP response codes in cornice apps.
Change-Id: I35efe85794e761877edd06722952292a3cac5d85
2013-09-16 12:07:55 -04:00
Christophe de Vienne
579772807e The Response object can now carry error details. Not sure about this though, it needs refinements 2013-06-21 00:22:23 +02:00
Christophe de Vienne
6b1a94b092 wsmeext.cornice now handle errors properly 2013-04-17 17:51:44 +02:00
Christophe de Vienne
814e87ea72 wsmeext.cornice.signature can now decorate resource class methods 2013-04-17 16:03:56 +02:00
Christophe de Vienne
c1c8e709ad The cornice adapter now handle the url matched parameters 2013-04-10 11:41:52 +02:00
Christophe de Vienne
b2e760894e Move the missing argument verification in a wsme.runtime module so that it can be used in all adapters 2013-04-08 15:45:08 +02:00
Christophe de Vienne
83bc4b596b A new HostRequest type can be used to have the host framework request object passed to the exposed functions 2013-04-02 16:19:30 +02:00
Christophe de Vienne
c1f08c40db Create some (incomplete) tests for the cornice adapter and fix it 2013-03-28 23:30:06 +01:00
Christophe de Vienne
24eebd8428 Document the tg1x and cornice adapters 2013-01-30 16:07:08 +01:00
Christophe de Vienne
8736089dc9 Moved non-core features to the wsmeext namespace package
--HG--
rename : wsme/cornice.py => wsmeext/cornice.py
rename : wsme/pecan.py => wsmeext/pecan.py
rename : wsme/sphinxext.py => wsmeext/sphinxext.py
rename : wsme/tg1.py => wsmeext/tg1.py
rename : wsme/tg11.py => wsmeext/tg11.py
rename : wsme/tg15.py => wsmeext/tg15.py
2013-01-17 13:15:25 +01:00