annotate PerfsDb/Tests/ToolsFind.py @ 280:5daa3896981c

testing storage commitment reports
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 10 Mar 2020 20:54:57 +0100
parents dbc42a03ee75
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
162
dbc42a03ee75 more perfs db tests
am@osimis.io
parents:
diff changeset
1 from Test import Test
dbc42a03ee75 more perfs db tests
am@osimis.io
parents:
diff changeset
2
dbc42a03ee75 more perfs db tests
am@osimis.io
parents:
diff changeset
3 class TestToolsFindStudyByStudyInstanceUID(Test):
dbc42a03ee75 more perfs db tests
am@osimis.io
parents:
diff changeset
4
dbc42a03ee75 more perfs db tests
am@osimis.io
parents:
diff changeset
5 def __init__(self, name:str = "ToolsFindStudyByStudyInstanceUID"):
dbc42a03ee75 more perfs db tests
am@osimis.io
parents:
diff changeset
6 super().__init__(name)
dbc42a03ee75 more perfs db tests
am@osimis.io
parents:
diff changeset
7
dbc42a03ee75 more perfs db tests
am@osimis.io
parents:
diff changeset
8 def test(self):
dbc42a03ee75 more perfs db tests
am@osimis.io
parents:
diff changeset
9 self._orthanc.studies.find(
dbc42a03ee75 more perfs db tests
am@osimis.io
parents:
diff changeset
10 studyInstanceUid="99999.99999"
dbc42a03ee75 more perfs db tests
am@osimis.io
parents:
diff changeset
11 )
dbc42a03ee75 more perfs db tests
am@osimis.io
parents:
diff changeset
12
dbc42a03ee75 more perfs db tests
am@osimis.io
parents:
diff changeset
13 class TestToolsFindPatientByPatientID(Test):
dbc42a03ee75 more perfs db tests
am@osimis.io
parents:
diff changeset
14
dbc42a03ee75 more perfs db tests
am@osimis.io
parents:
diff changeset
15 def __init__(self, name:str = "ToolsFindPatientByPatientID"):
dbc42a03ee75 more perfs db tests
am@osimis.io
parents:
diff changeset
16 super().__init__(name)
dbc42a03ee75 more perfs db tests
am@osimis.io
parents:
diff changeset
17
dbc42a03ee75 more perfs db tests
am@osimis.io
parents:
diff changeset
18 def test(self):
dbc42a03ee75 more perfs db tests
am@osimis.io
parents:
diff changeset
19 self._orthanc.patients.find(
dbc42a03ee75 more perfs db tests
am@osimis.io
parents:
diff changeset
20 dicomPatientId="99999"
dbc42a03ee75 more perfs db tests
am@osimis.io
parents:
diff changeset
21 )