changeset 112:9d09f6f21b60

added a test for issue #36
author amazy
date Mon, 10 Jul 2017 21:11:12 +0200
parents 7005cdeeb704
children 3e5934363e76 4a196ebc7a4f
files Tests/Tests.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Tests/Tests.py	Wed Jul 05 13:11:23 2017 +0200
+++ b/Tests/Tests.py	Mon Jul 10 21:11:12 2017 +0200
@@ -1587,7 +1587,7 @@
         self.assertEqual(1, len(DoGet(_REMOTE, '/series')))
         self.assertEqual(2, len(DoGet(_REMOTE, '/instances')))
 
-        DoPost(_REMOTE, '/queries/%s/answers/1/retrieve' % a, 'ORTHANC')
+        DoPost(_REMOTE, '/queries/%s/answers/1/retrieve' % a, 'ORTHANC', 'application/json') # make sure the issue #36 is fixed (query/retrieve Rest API: /retrieve route shall accept application/json content type)
         self.assertEqual(1, len(DoGet(_REMOTE, '/patients')))
         self.assertEqual(1, len(DoGet(_REMOTE, '/studies')))
         self.assertEqual(2, len(DoGet(_REMOTE, '/series')))