Mercurial > hg > orthanc-tests
changeset 910:f2bde044116b
fix version detection
| author | Alain Mazy <am@orthanc.team> |
|---|---|
| date | Tue, 28 Apr 2026 09:30:23 +0200 |
| parents | 36d412e3a9f5 |
| children | 6e9908fe7f5e |
| files | Tests/Tests.py |
| diffstat | 1 files changed, 12 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/Tests/Tests.py Mon Apr 27 17:10:30 2026 +0200 +++ b/Tests/Tests.py Tue Apr 28 09:30:23 2026 +0200 @@ -3294,18 +3294,19 @@ # use the LocalAet from the payload - DropOrthanc(_LOCAL) - j = DoPost(_REMOTE, '/modalities/orthanctest-with-local-aet/store', { - 'LocalAet' : 'FROM-PAYLOAD', - 'Resources' : [ a['ID'], b['ID'] ], - 'Synchronous': False - }) - - WaitJobDone(_REMOTE, j['ID']) - self.assertEqual(2, len(DoGet(_LOCAL, '/instances'))) if IsOrthancVersionAbove(_REMOTE, 1, 12, 12): - self.assertEqual('FROM-PAYLOAD', DoGet(_LOCAL, '/instances/%s/metadata/RemoteAET' % a['ID'])) - self.assertEqual('FROM-PAYLOAD', DoGet(_REMOTE, '/jobs/%s' % j['ID'])['Content']['LocalAet']) + DropOrthanc(_LOCAL) + j = DoPost(_REMOTE, '/modalities/orthanctest-with-local-aet/store', { + 'LocalAet' : 'FROM-PAYLOAD', + 'Resources' : [ a['ID'], b['ID'] ], + 'Synchronous': False + }) + + WaitJobDone(_REMOTE, j['ID']) + self.assertEqual(2, len(DoGet(_LOCAL, '/instances'))) + if IsOrthancVersionAbove(_REMOTE, 1, 12, 12): + self.assertEqual('FROM-PAYLOAD', DoGet(_LOCAL, '/instances/%s/metadata/RemoteAET' % a['ID'])) + self.assertEqual('FROM-PAYLOAD', DoGet(_REMOTE, '/jobs/%s' % j['ID'])['Content']['LocalAet']) DropOrthanc(_REMOTE)
