comparison PerfsDb/Tests/Statistics.py @ 167:3b1bfbe960c9

fix
author am@osimis.io
date Fri, 31 Aug 2018 10:33:03 +0200
parents 7d39adee9f88
children 11b7e1fa7aff
comparison
equal deleted inserted replaced
166:7d39adee9f88 167:3b1bfbe960c9
11 def test(self): 11 def test(self):
12 self._statistics = self._orthanc.getJson(relativeUrl="statistics") 12 self._statistics = self._orthanc.getJson(relativeUrl="statistics")
13 13
14 def beforeAll(self): 14 def beforeAll(self):
15 # on large DB, statistics may be very slow so we don't want to repeat it 30 times ! 15 # on large DB, statistics may be very slow so we don't want to repeat it 30 times !
16 self.repeatCount = max(self.repeatCount / 10, 1) 16 self.repeatCount = max(int(self.repeatCount) / 10, 1)
17 17
18 def afterAll(self): 18 def afterAll(self):
19 print("Statistics:" + json.dumps(self._statistics)) 19 print("Statistics:" + json.dumps(self._statistics))