Mercurial > hg > orthanc-tests
comparison PerfsDb/Tests/Statistics.py @ 166:7d39adee9f88
don't repeat statistics test that is lengthy
author | am@osimis.io |
---|---|
date | Fri, 31 Aug 2018 10:31:15 +0200 |
parents | df1f9946571c |
children | 3b1bfbe960c9 |
comparison
equal
deleted
inserted
replaced
165:1ff0d830bb87 | 166:7d39adee9f88 |
---|---|
9 self._response = None | 9 self._response = None |
10 | 10 |
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): | |
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) | |
17 | |
14 def afterAll(self): | 18 def afterAll(self): |
15 print("Statistics:" + json.dumps(self._statistics)) | 19 print("Statistics:" + json.dumps(self._statistics)) |