Commit 2e62c825 authored by Katia Saurfelt's avatar Katia Saurfelt
Browse files

[test] fix put and delete tests: add a final "/"

--HG--
branch : 0.1
parent 669b6ac9acfc
......@@ -19,7 +19,7 @@ To create an entity of type ``Author``, we `POST` on ``/author`` endpoint:
Keep the resource location for further usage:
>>> url = resp.location[len('https://localhost:80'):]
>>> url = resp.location[len('https://localhost:80'):] + "/"
In case of invalid input data, we get a meaningful error message:
......
......@@ -248,7 +248,7 @@ Python package.
>>> from uritemplate import URITemplate
>>> item_link = books_schema['items']['links'][0]
>>> item_uritemplate = URITemplate(item_link['href'])
>>> item_uri = item_uritemplate.expand(books[0])
>>> item_uri = item_uritemplate.expand(books[0]) + '/'
>>> item_response = client.get(item_uri,
... headers={'accept': 'application/json'})
>>> print(item_response) # doctest: +ELLIPSIS
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment