Merge lp:~cjwatson/lazr.restful/fix-tests into lp:lazr.restful

Proposed by Colin Watson
Status: Merged
Merged at revision: 227
Proposed branch: lp:~cjwatson/lazr.restful/fix-tests
Merge into: lp:lazr.restful
Diff against target: 55 lines (+9/-5)
3 files modified
NEWS.txt (+5/-0)
src/lazr/restful/docs/webservice-declarations.txt (+3/-4)
src/lazr/restful/example/base/tests/collection.txt (+1/-1)
To merge this branch: bzr merge lp:~cjwatson/lazr.restful/fix-tests
Reviewer Review Type Date Requested Status
Ioana Lasc (community) Approve
LAZR Developers Pending
Review via email: mp+374908@code.launchpad.net

Commit message

Fix a couple of test failures with newer dependency versions.

To post a comment you must log in.
lp:~cjwatson/lazr.restful/fix-tests updated
226. By Colin Watson

Merge trunk.

Revision history for this message
Ioana Lasc (ilasc) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'NEWS.txt'
--- NEWS.txt 2019-11-02 23:58:59 +0000
+++ NEWS.txt 2019-11-03 18:40:32 +0000
@@ -19,6 +19,11 @@
19Fixed bug 1803564: Values from requests that contain only whitespace are now19Fixed bug 1803564: Values from requests that contain only whitespace are now
20interpreted correctly.20interpreted correctly.
2121
22Fix test failures with zope.configuration >= 4.3.0.
23
24Fix test failures with Python >= 2.7.17 (or backported fixes for
25CVE-2019-9740).
26
220.20.1 (2018-02-21)270.20.1 (2018-02-21)
23===================28===================
2429
2530
=== modified file 'src/lazr/restful/docs/webservice-declarations.txt'
--- src/lazr/restful/docs/webservice-declarations.txt 2018-09-28 15:41:05 +0000
+++ src/lazr/restful/docs/webservice-declarations.txt 2019-11-03 18:40:32 +0000
@@ -2699,10 +2699,10 @@
2699 >>> register_test_module('wrongorder', WrongOrderVersions)2699 >>> register_test_module('wrongorder', WrongOrderVersions)
2700 Traceback (most recent call last):2700 Traceback (most recent call last):
2701 ...2701 ...
2702 ConfigurationExecutionError: <type 'exceptions.AssertionError'>:2702 ConfigurationExecutionError: ...AssertionError...
2703 Annotations on "WrongOrderVersions.method" put an earlier version2703 Annotations on "WrongOrderVersions.method" put an earlier version
2704 on top of a later version: "beta", "2.0", "1.0". The correct order2704 on top of a later version: "beta", "2.0", "1.0". The correct order
2705 is: "beta", "1.0", "2.0". ...2705 is: "beta", "1.0", "2.0"...
27062706
2707Here's a class in which a named operation is removed in version 1.02707Here's a class in which a named operation is removed in version 1.0
2708and then annotated without being reinstated.2708and then annotated without being reinstated.
@@ -2723,8 +2723,7 @@
2723 ...2723 ...
2724 ConfigurationExecutionError: ... Method "method" contains2724 ConfigurationExecutionError: ... Method "method" contains
2725 annotations for version "2.0", even though it's not published in2725 annotations for version "2.0", even though it's not published in
2726 that version. The bad annotations are: "as", "params".2726 that version. The bad annotations are: "as", "params"...
2727 ...
27282727
2729Mutators as named operations2728Mutators as named operations
2730----------------------------2729----------------------------
27312730
=== modified file 'src/lazr/restful/example/base/tests/collection.txt'
--- src/lazr/restful/example/base/tests/collection.txt 2015-04-09 14:02:44 +0000
+++ src/lazr/restful/example/base/tests/collection.txt 2019-11-03 18:40:32 +0000
@@ -247,7 +247,7 @@
247The error message may contain Unicode characters:247The error message may contain Unicode characters:
248248
249 >>> from lazr.restful.testing.helpers import encode_response249 >>> from lazr.restful.testing.helpers import encode_response
250 >>> url = u"/cookbooks?ws.op=find_for_cuisine&cuisine=\N{SNOWMAN}"250 >>> url = u"/cookbooks?ws.op=find_for_cuisine&cuisine=%E2%98%83"
251 >>> response = webservice.get(url.encode("utf-8"))251 >>> response = webservice.get(url.encode("utf-8"))
252 >>> print encode_response(response)252 >>> print encode_response(response)
253 HTTP/1.1 400 Bad Request253 HTTP/1.1 400 Bad Request

Subscribers

People subscribed via source and target branches