lp:~cjwatson/lazr.restful/py3-declarations
- Get this branch:
- bzr branch lp:~cjwatson/lazr.restful/py3-declarations
Branch merges
- William Grant: Approve (code)
-
Diff: 2275 lines (+681/-421)11 files modifiedNEWS.rst (+10/-0)
src/lazr/restful/declarations.py (+205/-79)
src/lazr/restful/docs/webservice-declarations.rst (+162/-214)
src/lazr/restful/example/base/interfaces.py (+20/-12)
src/lazr/restful/example/base_extended/comments.py (+6/-4)
src/lazr/restful/example/multiversion/resources.py (+16/-8)
src/lazr/restful/example/wsgi/README.txt (+4/-4)
src/lazr/restful/example/wsgi/resources.py (+7/-5)
src/lazr/restful/testing/webservice.py (+3/-3)
src/lazr/restful/tests/test_declarations.py (+232/-79)
src/lazr/restful/tests/test_webservice.py (+16/-13)
Branch information
Recent revisions
- 238. By Colin Watson
-
Fix skipping of test classes with testtools.
testtools doesn't currently support skipping test classes the normal
unittest way; see https://github. com/testing- cabal/testtools /issues/ 205.
However, we can avoid having to apply @unittest.skipIf to every test case in
the class by calling skipTest in setUp instead. - 236. By Colin Watson
-
Deprecate class advice APIs and provide replacements.
lazr.restful.
declarations. export_ as_webservice_ entry and
lazr.restful.declarations. export_ as_webservice_ collection can't work on
Python 3, because the whole "class advice" strategy relies on metaclass
hacking that is no longer possible. Deprecate these and provide equivalent
class decorators (@exported_as_webservice_ entry and
@exported_as_webservice_ collection) instead. - 232. By Colin Watson
-
[r=doismellburning] Apply absolute_import and print_function __future__ imports.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:lazr.restful