Debian Codegraph @

debian/patches/testsuite-installed

raw
1 Author: Alexandre Rossi <[email protected]>
2 Description: Use installed binary for testsuite run by autpkgtest
3 Forwarded: not-needed
4
5 --- python-whisper.orig/test_whisper.py 2025-03-21 14:50:12.330193065 +0100
6 +++ python-whisper/test_whisper.py 2025-03-21 14:50:30.562542645 +0100
7 @@ -831,7 +831,7 @@
8 for d in data[1]:
9 self.assertIsNotNone(d)
10 # resize from high to low
11 - os.system('whisper-resize.py %s 60s:1d 300s:2d --aggregate --nobackup >/dev/null' % self.filename) # noqa
12 + os.system('whisper-resize %s 60s:1d 300s:2d --aggregate --nobackup >/dev/null' % self.filename) # noqa
13 data_low = whisper.fetch(
14 self.filename, fromTime=now_timestamp - 3600 * 25,
15 untilTime=now_timestamp - 3600 * 25 + 60 * 10)
16 @@ -846,7 +846,7 @@
17 self.assertEqual(len(data_high[1]), 10)
18 self.assertEqual(data_high[0][2], 60) # high retention == 60
19 # resize from low to high
20 - os.system('whisper-resize.py %s 60s:2d --aggregate --nobackup >/dev/null' % self.filename) # noqa
21 + os.system('whisper-resize %s 60s:2d --aggregate --nobackup >/dev/null' % self.filename) # noqa
22 data1 = whisper.fetch(
23 self.filename, fromTime=now_timestamp - 3600 * 25,
24 untilTime=now_timestamp - 3600 * 25 + 60 * 10)