]> git.parisson.com Git - timeside.git/commitdiff
remove some useless graphing tests
authorGuillaume Pellerin <yomguy@parisson.com>
Sun, 19 Jan 2014 18:08:21 +0000 (19:08 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Sun, 19 Jan 2014 18:08:21 +0000 (19:08 +0100)
tests/test_graphing.py

index bf1d7218a73fa91884c8add0bc2fc2b001c89431..5322b6a40768b4bb61b6329ac328d8e65385b1af 100755 (executable)
@@ -7,8 +7,9 @@ import os.path
 
 __all__ = ['TestGraphing']
 
+
 class TestGraphing(unittest.TestCase):
-    "Test all graphers with various input media formats"
+    "Test all graphers with WAV input media format"
 
     def setUp(self):
         pass
@@ -21,27 +22,6 @@ class TestGraphing(unittest.TestCase):
         self.image = "/tmp/test_waveform_sweep_wav.png"
         self.grapher = Waveform(width=1024, height=256, bg_color=(255,255,255), color_scheme='default')
 
-    def testFlac2Waveform(self):
-        "Test FLAC to Waveform"
-        from timeside.grapher.waveform_simple import Waveform
-        self.source = os.path.join (os.path.dirname(__file__),  "samples/sweep.flac")
-        self.image = "/tmp/test_waveform_sweep_flac.png"
-        self.grapher = Waveform(width=1024, height=256, bg_color=(255,255,255), color_scheme='default')
-
-    def testMp32Waveform(self):
-        "Test MP3 to Waveform"
-        from timeside.grapher.waveform_simple import Waveform
-        self.source = os.path.join (os.path.dirname(__file__),  "samples/sweep.mp3")
-        self.image = "/tmp/test_waveform_sweep_mp3.png"
-        self.grapher = Waveform(width=1024, height=256, bg_color=(255,255,255), color_scheme='default')
-
-    def testOgg2Waveform(self):
-        "Test OGG to Waveform"
-        from timeside.grapher.waveform_simple import Waveform
-        self.source = os.path.join (os.path.dirname(__file__),  "samples/sweep.ogg")
-        self.image = "/tmp/test_waveform_sweep_ogg.png"
-        self.grapher = Waveform(width=1024, height=256, bg_color=(255,255,255), color_scheme='default')
-
     # WAVEFORM CENTROID
     def testWav2WaveformCentroid(self):
         "Test WAV to WaveformCentroid"
@@ -50,27 +30,6 @@ class TestGraphing(unittest.TestCase):
         self.image = "/tmp/test_waveform_centroid_sweep_wav.png"
         self.grapher = WaveformCentroid(width=1024, height=256, bg_color=(0,0,0), color_scheme='default')
 
-    def testFlac2WaveformCentroid(self):
-        "Test FLAC to WaveformCentroid"
-        from timeside.grapher.waveform_centroid import WaveformCentroid
-        self.source = os.path.join (os.path.dirname(__file__),  "samples/sweep.wav")
-        self.image = "/tmp/test_waveform_centroid_sweep_wav.png"
-        self.grapher = WaveformCentroid(width=1024, height=256, bg_color=(0,0,0), color_scheme='default')
-
-    def testMp32WaveformCentroid(self):
-        "Test MP3 to WaveformCentroid"
-        from timeside.grapher.waveform_centroid import WaveformCentroid
-        self.source = os.path.join (os.path.dirname(__file__),  "samples/sweep.wav")
-        self.image = "/tmp/test_waveform_centroid_sweep_wav.png"
-        self.grapher = WaveformCentroid(width=1024, height=256, bg_color=(0,0,0), color_scheme='default')
-
-    def testOgg2WaveformCentroid(self):
-        "Test OGG to WaveformCentroid"
-        from timeside.grapher.waveform_centroid import WaveformCentroid
-        self.source = os.path.join (os.path.dirname(__file__),  "samples/sweep.wav")
-        self.image = "/tmp/test_waveform_centroid_sweep_wav.png"
-        self.grapher = WaveformCentroid(width=1024, height=256, bg_color=(0,0,0), color_scheme='default')
-
     # WAVEFORMS TRANSPARENT
     def testWav2WaveformTransparent(self):
         "Test WAV to WaveformTransparent"
@@ -79,27 +38,6 @@ class TestGraphing(unittest.TestCase):
         self.image = "/tmp/test_waveform_transparent_sweep_wav.png"
         self.grapher = WaveformTransparent(width=1024, height=256, bg_color=None, color_scheme='default')
 
-    def testFlac2WaveformContourWhite(self):
-        "Test FLAC to WaveformTransparent"
-        from timeside.grapher.waveform_transparent import WaveformTransparent
-        self.source = os.path.join (os.path.dirname(__file__),  "samples/sweep.flac")
-        self.image = "/tmp/test_waveform_transparent_sweep_flac.png"
-        self.grapher = WaveformTransparent(width=1024, height=256, bg_color=None, color_scheme='default')
-
-    def testMp32WaveformTransparent(self):
-        "Test MP3 to WaveformTransparent"
-        from timeside.grapher.waveform_transparent import WaveformTransparent
-        self.source = os.path.join (os.path.dirname(__file__),  "samples/sweep.mp3")
-        self.image = "/tmp/test_waveform_transparent_sweep_mp3.png"
-        self.grapher = WaveformTransparent(width=1024, height=256, bg_color=None, color_scheme='default')
-
-    def testOggWaveformTransparent(self):
-        "Test OGG to WaveformTransparent"
-        from timeside.grapher.waveform_transparent import WaveformTransparent
-        self.source = os.path.join (os.path.dirname(__file__),  "samples/sweep.ogg")
-        self.image = "/tmp/test_waveform_transparent_sweep_ogg.png"
-        self.grapher = WaveformTransparent(width=1024, height=256, bg_color=None, color_scheme='default')
-
     # WAVEFORMS CONTOUR BLACK
     def testWav2WaveformContourBlack(self):
         "Test WAV to WaveformContourBlack"
@@ -108,27 +46,6 @@ class TestGraphing(unittest.TestCase):
         self.image = "/tmp/test_waveform_contour_bk_sweep_wav.png"
         self.grapher = WaveformContourBlack(width=1024, height=256, bg_color=(0,0,0), color_scheme='default')
 
-    def testFlac2WaveformContourBlack(self):
-        "Test FLAC to WaveformContourBlack"
-        from timeside.grapher.waveform_contour import WaveformContourBlack
-        self.source = os.path.join (os.path.dirname(__file__),  "samples/sweep.flac")
-        self.image = "/tmp/test_waveform_contour_bk_sweep_flac.png"
-        self.grapher = WaveformContourBlack(width=1024, height=256, bg_color=(0,0,0), color_scheme='default')
-
-    def testMp32WaveformContourBlack(self):
-        "Test MP3 to WaveformContourBlack"
-        from timeside.grapher.waveform_contour import WaveformContourBlack
-        self.source = os.path.join (os.path.dirname(__file__),  "samples/sweep.mp3")
-        self.image = "/tmp/test_waveform_contour_bk_sweep_mp3.png"
-        self.grapher = WaveformContourBlack(width=1024, height=256, bg_color=(0,0,0), color_scheme='default')
-
-    def testOgg2WaveformContourBlack(self):
-        "Test OGG to WaveformContourBlack"
-        from timeside.grapher.waveform_contour import WaveformContourBlack
-        self.source = os.path.join (os.path.dirname(__file__),  "samples/sweep.ogg")
-        self.image = "/tmp/test_waveform_contour_bk_sweep_ogg.png"
-        self.grapher = WaveformContourBlack(width=1024, height=256, bg_color=(0,0,0), color_scheme='default')
-
     # WAVEFORMS CONTOUR WHITE
     def testWav2WaveformContourWhite(self):
         "Test WAV to WaveformContourWhite"
@@ -137,27 +54,6 @@ class TestGraphing(unittest.TestCase):
         self.image = "/tmp/test_waveform_contour_wh_sweep_wav.png"
         self.grapher = WaveformContourWhite(width=1024, height=256, bg_color=(255,255,255), color_scheme='default')
 
-    def testFlac2WaveformContourWhite(self):
-        "Test FLAC to WaveformContourWhite"
-        from timeside.grapher.waveform_contour import WaveformContourWhite
-        self.source = os.path.join (os.path.dirname(__file__),  "samples/sweep.flac")
-        self.image = "/tmp/test_waveform_contour_wh_sweep_flac.png"
-        self.grapher = WaveformContourWhite(width=1024, height=256, bg_color=(255,255,255), color_scheme='default')
-
-    def testMp32WaveformContourWhite(self):
-        "Test MP3 to WaveformContourWhite"
-        from timeside.grapher.waveform_contour import WaveformContourWhite
-        self.source = os.path.join (os.path.dirname(__file__),  "samples/sweep.mp3")
-        self.image = "/tmp/test_waveform_contour_wh_sweep_mp3.png"
-        self.grapher = WaveformContourWhite(width=1024, height=256, bg_color=(255,255,255), color_scheme='default')
-
-    def testOggWaveformContourWhite(self):
-        "Test OGG to WaveformContourWhite"
-        from timeside.grapher.waveform_contour import WaveformContourWhite
-        self.source = os.path.join (os.path.dirname(__file__),  "samples/sweep.ogg")
-        self.image = "/tmp/test_waveform_contour_wh_sweep_ogg.png"
-        self.grapher = WaveformContourWhite(width=1024, height=256, bg_color=(255,255,255), color_scheme='default')
-
     # LOG SPECTROGRAMS
     def testWav2Spectrogram(self):
         "Test WAV to Spectrogram"
@@ -166,27 +62,6 @@ class TestGraphing(unittest.TestCase):
         self.image = "/tmp/test_spectrogram_log_sweep_wav.png"
         self.grapher = SpectrogramLog(width=1024, height=256, bg_color=(0,0,0), color_scheme='default')
 
-    def testMp32SpectrogramLog(self):
-        "Test MP3 to SpectrogramLog"
-        from timeside.grapher.spectrogram_log import SpectrogramLog
-        self.source = os.path.join (os.path.dirname(__file__),  "samples/sweep.mp3")
-        self.image = "/tmp/test_spectrogram_log_sweep_mp3.png"
-        self.grapher = SpectrogramLog(width=1024, height=256, bg_color=(0,0,0), color_scheme='default')
-
-    def testFlac2SpectrogramLog(self):
-        "Test FLAC to SpectrogramLog"
-        from timeside.grapher.spectrogram_log import SpectrogramLog
-        self.source = os.path.join (os.path.dirname(__file__),  "samples/sweep.flac")
-        self.image = "/tmp/test_spectrogram_log_sweep_flac.png"
-        self.grapher = SpectrogramLog(width=1024, height=256, bg_color=(0,0,0), color_scheme='default')
-
-    def testOgg2SpectrogramLog(self):
-        "Test OGG to SpectrogramLog"
-        from timeside.grapher.spectrogram_log import SpectrogramLog
-        self.source = os.path.join (os.path.dirname(__file__),  "samples/sweep.ogg")
-        self.image = "/tmp/test_spectrogram_log_sweep_ogg.png"
-        self.grapher = SpectrogramLog(width=1024, height=256, bg_color=(0,0,0), color_scheme='default')
-
     # LIN SPECTROGRAMS
     def testWav2Spectrogram(self):
         "Test WAV to SpectrogramLinear"
@@ -195,27 +70,6 @@ class TestGraphing(unittest.TestCase):
         self.image = "/tmp/test_spectrogram_lin_sweep_wav.png"
         self.grapher = SpectrogramLinear(width=1024, height=256, bg_color=(0,0,0), color_scheme='default')
 
-    def testMp32SpectrogramLinear(self):
-        "Test MP3 to SpectrogramLinear"
-        from timeside.grapher.spectrogram_lin import SpectrogramLinear
-        self.source = os.path.join (os.path.dirname(__file__),  "samples/sweep.mp3")
-        self.image = "/tmp/test_spectrogram_lin_sweep_mp3.png"
-        self.grapher = SpectrogramLinear(width=1024, height=256, bg_color=(0,0,0), color_scheme='default')
-
-    def testFlac2SpectrogramLinear(self):
-        "Test FLAC to SpectrogramLinear"
-        from timeside.grapher.spectrogram_lin import SpectrogramLinear
-        self.source = os.path.join (os.path.dirname(__file__),  "samples/sweep.flac")
-        self.image = "/tmp/test_spectrogram_lin_sweep_flac.png"
-        self.grapher = SpectrogramLinear(width=1024, height=256, bg_color=(0,0,0), color_scheme='default')
-
-    def testOgg2SpectrogramLinear(self):
-        "Test OGG to SpectrogramLinear"
-        from timeside.grapher.spectrogram_lin import SpectrogramLinear
-        self.source = os.path.join (os.path.dirname(__file__),  "samples/sweep.ogg")
-        self.image = "/tmp/test_spectrogram_lin_sweep_ogg.png"
-        self.grapher = SpectrogramLinear(width=1024, height=256, bg_color=(0,0,0), color_scheme='default')
-
     def tearDown(self):
         decoder = FileDecoder(self.source)
         (decoder | self.grapher).run()