From: Paul Brossier Date: Thu, 8 Oct 2009 02:31:11 +0000 (+0200) Subject: tests/python/examples/aubioonset.py: do not check onset is actually detected with... X-Git-Tag: bzr2git~165 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ca559548b401e0512f84d5a37206e99d73aea45a;p=aubio.git tests/python/examples/aubioonset.py: do not check onset is actually detected with all functions --- diff --git a/tests/python/examples/aubioonset.py b/tests/python/examples/aubioonset.py index ebea1990..42b3b8e2 100644 --- a/tests/python/examples/aubioonset.py +++ b/tests/python/examples/aubioonset.py @@ -1,4 +1,4 @@ -from template import * +from template import program_test_case class aubioonset_unit(program_test_case): @@ -6,18 +6,20 @@ class aubioonset_unit(program_test_case): filename = os.path.join('..','..','sounds','woodblock.aiff') progname = os.path.join('..','..','examples','aubioonset') - def test_aubioonset(self): - """ test aubioonset with default parameters """ - self.getOutput() - assert len(str(self.output)) != 0, "no output produced with command:\n" \ - + self.command - def test_aubioonset_with_inf_silence(self): """ test aubioonset with -s 0 """ self.command += " -s 0" self.getOutput() assert len(self.output) == 0, self.output +class aubioonset_unit_finds_onset(aubioonset_unit): + + def test_aubioonset(self): + """ test aubioonset with default parameters """ + self.getOutput() + assert len(str(self.output)) != 0, "no output produced with command:\n" \ + + self.command + def test_aubioonset_with_no_silence(self): """ test aubioonset with -s -100 """ self.command += " -s -100 "