Mercurial > hg > orthanc-tests
comparison PerfsDb/Tests/FindStudy.py @ 156:f1a75985caa8
first Db test framework - work in progress
author | am@osimis.io |
---|---|
date | Thu, 16 Aug 2018 17:13:32 +0200 |
parents | |
children | 1ff0d830bb87 |
comparison
equal
deleted
inserted
replaced
155:e0996602b306 | 156:f1a75985caa8 |
---|---|
1 from Test import Test | |
2 | |
3 class TestFindStudyByStudyDescription1Result(Test): | |
4 | |
5 def __init__(self, name:str = "FindStudyByStudyDescription1Result"): | |
6 super().__init__(name) | |
7 | |
8 def test(self): | |
9 self._orthanc.studies.query( | |
10 query = {"StudyDescription": "99999-99999"} | |
11 ) | |
12 | |
13 class TestFindStudyByStudyDescription0Results(Test): | |
14 | |
15 def __init__(self, name:str = "FindStudyByStudyDescription0Results"): | |
16 super().__init__(name) | |
17 | |
18 def test(self): | |
19 self._orthanc.studies.query( | |
20 query = {"StudyDescription": "X"} | |
21 ) | |
22 | |
23 class TestFindStudyByPatientId1Result(Test): | |
24 | |
25 def __init__(self, name:str = "FindStudyByPatientId1Result"): | |
26 super().__init__(name) | |
27 | |
28 def test(self): | |
29 self._orthanc.studies.query( | |
30 query = {"PatientID": "99999"} | |
31 ) | |
32 | |
33 class TestFindStudyByPatientId0Results(Test): | |
34 | |
35 def __init__(self, name:str = "FindStudyByPatientId0Results"): | |
36 super().__init__(name) | |
37 | |
38 def test(self): | |
39 self._orthanc.studies.query( | |
40 query = {"PatientID": "X"} | |
41 ) | |
42 | |
43 class TestFindStudyByPatientId5Results(Test): | |
44 | |
45 def __init__(self, name:str = "FindStudyByPatientId5Results"): | |
46 super().__init__(name) | |
47 | |
48 def test(self): | |
49 self._orthanc.studies.query( | |
50 query = {"PatientID": "99998"} | |
51 ) |