Mercurial > hg > orthanc-tests
diff PerfsDb/Tests/UploadFile.py @ 158:df1f9946571c
perfs db continued: tests working with tiny DBs on all setup but the sqliteplugin
author | am@osimis.io |
---|---|
date | Fri, 17 Aug 2018 11:58:26 +0200 |
parents | f1a75985caa8 |
children | 27b3b0df5f90 |
line wrap: on
line diff
--- a/PerfsDb/Tests/UploadFile.py Thu Aug 16 17:14:05 2018 +0200 +++ b/PerfsDb/Tests/UploadFile.py Fri Aug 17 11:58:26 2018 +0200 @@ -8,12 +8,13 @@ self._filePath = filePath self._dicomFileContent = None - def prepare(self): + def beforeAll(self): # get the instance Id and dicom file content if self._instanceId is None: self._instanceId = self._orthanc.uploadDicomFile(self._filePath) self._dicomFileContent = self._orthanc.instances.getDicom(self._instanceId) + def beforeEach(self): # make sure the file is not in Orthanc before the upload self._orthanc.instances.delete(self._instanceId)