Skip to content

Commit

Permalink
Added tutorials on cancellation reason types
Browse files Browse the repository at this point in the history
  • Loading branch information
ktarasz committed Mar 16, 2016
1 parent 25218e4 commit f25e7fc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,11 @@ def test_docs(self):

cancellation_id = response.json['data']['id']

with open('docs/source/tutorial/update-cancellation-reasonType.http', 'w') as self.app.file_obj:
response = self.app.patch_json('/tenders/{}/cancellations/{}?acc_token={}'.format(
self.tender_id, cancellation_id, owner_token), {"data":{'reasonType': 'unsuccessful'}})
self.assertEqual(response.status, '200 OK')

#### Filling cancellation with protocol and supplementary documentation
#

Expand Down
4 changes: 4 additions & 0 deletions docs/source/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,10 @@ You should pass `reason`, `status` defaults to `pending`.
.. include:: tutorial/prepare-cancellation.http
:code:

.. include:: tutorial/update-cancellation-reasonType.http
:code:


Filling cancellation with protocol and supplementary documentation
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down

0 comments on commit f25e7fc

Please sign in to comment.