From 994b745dd577b2a0474492c56349e1edefaa3aa5 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Mon, 21 Nov 2011 19:30:55 -0800 Subject: [PATCH] moved tests outside timeside module --- tests/alltests.py | 8 ++++++++ {timeside/tests => tests}/api/__init__.py | 0 {timeside/tests => tests}/api/examples.py | 0 {timeside/tests => tests}/api/gstreamer.py | 0 {timeside/tests => tests}/api/test_analyzer.py | 0 {timeside/tests => tests}/api/test_analyzer3.py | 0 {timeside/tests => tests}/api/test_flac.py | 0 {timeside/tests => tests}/api/test_lolevel.py | 0 .../tests => tests}/api/test_lolevel_streaming.py | 0 .../api/test_lolevel_streaming_bad.py | 0 .../api/test_lolevel_streaming_vorbis.py | 0 {timeside/tests => tests}/api/test_mp3.py | 0 {timeside/tests => tests}/api/test_pipe.py | 0 .../tests => tests}/api/test_pipe_spectrogram.py | 0 {timeside/tests => tests}/api/test_pipe_waveform.py | 0 {timeside/tests => tests}/api/test_vorbis.py | 0 {timeside/tests => tests}/api/test_wav.py | 0 {timeside/tests => tests}/listprocessors.py | 0 {timeside/tests => tests}/samples/guitar.wav | Bin {timeside/tests => tests}/samples/sweep.flac | Bin {timeside/tests => tests}/samples/sweep.mp3 | Bin {timeside/tests => tests}/samples/sweep.ogg | Bin {timeside/tests => tests}/samples/sweep.wav | Bin {timeside/tests => tests}/samples/sweep_source.wav | Bin {timeside/tests => tests}/testcomponent.py | 3 +-- {timeside/tests => tests}/testdecoding.py | 3 +-- {timeside/tests => tests}/testgraphers.py | 4 ++-- {timeside/tests => tests}/testinputadapter.py | 3 +-- {timeside/tests => tests}/testtranscoding.py | 4 ++-- .../tests/__init__.py => tests/unit_timeside.py | 0 timeside/__init__.py | 1 - timeside/tests/alltests.py | 8 -------- 32 files changed, 15 insertions(+), 19 deletions(-) create mode 100644 tests/alltests.py rename {timeside/tests => tests}/api/__init__.py (100%) rename {timeside/tests => tests}/api/examples.py (100%) rename {timeside/tests => tests}/api/gstreamer.py (100%) rename {timeside/tests => tests}/api/test_analyzer.py (100%) rename {timeside/tests => tests}/api/test_analyzer3.py (100%) rename {timeside/tests => tests}/api/test_flac.py (100%) rename {timeside/tests => tests}/api/test_lolevel.py (100%) rename {timeside/tests => tests}/api/test_lolevel_streaming.py (100%) rename {timeside/tests => tests}/api/test_lolevel_streaming_bad.py (100%) rename {timeside/tests => tests}/api/test_lolevel_streaming_vorbis.py (100%) rename {timeside/tests => tests}/api/test_mp3.py (100%) rename {timeside/tests => tests}/api/test_pipe.py (100%) rename {timeside/tests => tests}/api/test_pipe_spectrogram.py (100%) rename {timeside/tests => tests}/api/test_pipe_waveform.py (100%) rename {timeside/tests => tests}/api/test_vorbis.py (100%) rename {timeside/tests => tests}/api/test_wav.py (100%) rename {timeside/tests => tests}/listprocessors.py (100%) rename {timeside/tests => tests}/samples/guitar.wav (100%) rename {timeside/tests => tests}/samples/sweep.flac (100%) rename {timeside/tests => tests}/samples/sweep.mp3 (100%) rename {timeside/tests => tests}/samples/sweep.ogg (100%) rename {timeside/tests => tests}/samples/sweep.wav (100%) rename {timeside/tests => tests}/samples/sweep_source.wav (100%) rename {timeside/tests => tests}/testcomponent.py (98%) rename {timeside/tests => tests}/testdecoding.py (95%) rename {timeside/tests => tests}/testgraphers.py (98%) rename {timeside/tests => tests}/testinputadapter.py (97%) rename {timeside/tests => tests}/testtranscoding.py (98%) rename timeside/tests/__init__.py => tests/unit_timeside.py (100%) delete mode 100644 timeside/tests/alltests.py diff --git a/tests/alltests.py b/tests/alltests.py new file mode 100644 index 0000000..4543878 --- /dev/null +++ b/tests/alltests.py @@ -0,0 +1,8 @@ +from testcomponent import * +from testinputadapter import * +from testgraphers import * +from testdecoding import * +from testtranscoding import * +from unit_timeside import * + +unittest.main(testRunner=TestRunner()) diff --git a/timeside/tests/api/__init__.py b/tests/api/__init__.py similarity index 100% rename from timeside/tests/api/__init__.py rename to tests/api/__init__.py diff --git a/timeside/tests/api/examples.py b/tests/api/examples.py similarity index 100% rename from timeside/tests/api/examples.py rename to tests/api/examples.py diff --git a/timeside/tests/api/gstreamer.py b/tests/api/gstreamer.py similarity index 100% rename from timeside/tests/api/gstreamer.py rename to tests/api/gstreamer.py diff --git a/timeside/tests/api/test_analyzer.py b/tests/api/test_analyzer.py similarity index 100% rename from timeside/tests/api/test_analyzer.py rename to tests/api/test_analyzer.py diff --git a/timeside/tests/api/test_analyzer3.py b/tests/api/test_analyzer3.py similarity index 100% rename from timeside/tests/api/test_analyzer3.py rename to tests/api/test_analyzer3.py diff --git a/timeside/tests/api/test_flac.py b/tests/api/test_flac.py similarity index 100% rename from timeside/tests/api/test_flac.py rename to tests/api/test_flac.py diff --git a/timeside/tests/api/test_lolevel.py b/tests/api/test_lolevel.py similarity index 100% rename from timeside/tests/api/test_lolevel.py rename to tests/api/test_lolevel.py diff --git a/timeside/tests/api/test_lolevel_streaming.py b/tests/api/test_lolevel_streaming.py similarity index 100% rename from timeside/tests/api/test_lolevel_streaming.py rename to tests/api/test_lolevel_streaming.py diff --git a/timeside/tests/api/test_lolevel_streaming_bad.py b/tests/api/test_lolevel_streaming_bad.py similarity index 100% rename from timeside/tests/api/test_lolevel_streaming_bad.py rename to tests/api/test_lolevel_streaming_bad.py diff --git a/timeside/tests/api/test_lolevel_streaming_vorbis.py b/tests/api/test_lolevel_streaming_vorbis.py similarity index 100% rename from timeside/tests/api/test_lolevel_streaming_vorbis.py rename to tests/api/test_lolevel_streaming_vorbis.py diff --git a/timeside/tests/api/test_mp3.py b/tests/api/test_mp3.py similarity index 100% rename from timeside/tests/api/test_mp3.py rename to tests/api/test_mp3.py diff --git a/timeside/tests/api/test_pipe.py b/tests/api/test_pipe.py similarity index 100% rename from timeside/tests/api/test_pipe.py rename to tests/api/test_pipe.py diff --git a/timeside/tests/api/test_pipe_spectrogram.py b/tests/api/test_pipe_spectrogram.py similarity index 100% rename from timeside/tests/api/test_pipe_spectrogram.py rename to tests/api/test_pipe_spectrogram.py diff --git a/timeside/tests/api/test_pipe_waveform.py b/tests/api/test_pipe_waveform.py similarity index 100% rename from timeside/tests/api/test_pipe_waveform.py rename to tests/api/test_pipe_waveform.py diff --git a/timeside/tests/api/test_vorbis.py b/tests/api/test_vorbis.py similarity index 100% rename from timeside/tests/api/test_vorbis.py rename to tests/api/test_vorbis.py diff --git a/timeside/tests/api/test_wav.py b/tests/api/test_wav.py similarity index 100% rename from timeside/tests/api/test_wav.py rename to tests/api/test_wav.py diff --git a/timeside/tests/listprocessors.py b/tests/listprocessors.py similarity index 100% rename from timeside/tests/listprocessors.py rename to tests/listprocessors.py diff --git a/timeside/tests/samples/guitar.wav b/tests/samples/guitar.wav similarity index 100% rename from timeside/tests/samples/guitar.wav rename to tests/samples/guitar.wav diff --git a/timeside/tests/samples/sweep.flac b/tests/samples/sweep.flac similarity index 100% rename from timeside/tests/samples/sweep.flac rename to tests/samples/sweep.flac diff --git a/timeside/tests/samples/sweep.mp3 b/tests/samples/sweep.mp3 similarity index 100% rename from timeside/tests/samples/sweep.mp3 rename to tests/samples/sweep.mp3 diff --git a/timeside/tests/samples/sweep.ogg b/tests/samples/sweep.ogg similarity index 100% rename from timeside/tests/samples/sweep.ogg rename to tests/samples/sweep.ogg diff --git a/timeside/tests/samples/sweep.wav b/tests/samples/sweep.wav similarity index 100% rename from timeside/tests/samples/sweep.wav rename to tests/samples/sweep.wav diff --git a/timeside/tests/samples/sweep_source.wav b/tests/samples/sweep_source.wav similarity index 100% rename from timeside/tests/samples/sweep_source.wav rename to tests/samples/sweep_source.wav diff --git a/timeside/tests/testcomponent.py b/tests/testcomponent.py similarity index 98% rename from timeside/tests/testcomponent.py rename to tests/testcomponent.py index 6638c30..a06952c 100644 --- a/timeside/tests/testcomponent.py +++ b/tests/testcomponent.py @@ -1,7 +1,6 @@ from timeside.component import * -from timeside.tests import TestCase, TestRunner -import unittest +from unit_timeside import TestCase, TestRunner __all__ = ['TestComponentArchitecture'] diff --git a/timeside/tests/testdecoding.py b/tests/testdecoding.py similarity index 95% rename from timeside/tests/testdecoding.py rename to tests/testdecoding.py index 5e0d255..c847c4c 100644 --- a/timeside/tests/testdecoding.py +++ b/tests/testdecoding.py @@ -1,6 +1,5 @@ from timeside.decoder import * -from timeside.tests import TestCase, TestRunner -import unittest +from unit_timeside import TestCase, TestRunner import os.path diff --git a/timeside/tests/testgraphers.py b/tests/testgraphers.py similarity index 98% rename from timeside/tests/testgraphers.py rename to tests/testgraphers.py index bff370c..622eeda 100644 --- a/timeside/tests/testgraphers.py +++ b/tests/testgraphers.py @@ -7,8 +7,8 @@ from timeside.grapher import * from timeside.api import * from timeside.component import * -from timeside.tests import TestCase, TestRunner -import unittest + +from unit_timeside import TestCase, TestRunner import os.path diff --git a/timeside/tests/testinputadapter.py b/tests/testinputadapter.py similarity index 97% rename from timeside/tests/testinputadapter.py rename to tests/testinputadapter.py index dca0f63..531866a 100644 --- a/timeside/tests/testinputadapter.py +++ b/tests/testinputadapter.py @@ -1,7 +1,6 @@ from timeside.core import FixedSizeInputAdapter -from timeside.tests import TestCase, TestRunner +from unit_timeside import TestCase, TestRunner import numpy -import unittest class TestFixedSizeInputAdapter(TestCase): "Test the fixed-sized input adapter" diff --git a/timeside/tests/testtranscoding.py b/tests/testtranscoding.py similarity index 98% rename from timeside/tests/testtranscoding.py rename to tests/testtranscoding.py index 7528a76..617b014 100644 --- a/timeside/tests/testtranscoding.py +++ b/tests/testtranscoding.py @@ -5,8 +5,8 @@ from timeside.encoder import * from timeside.api import * from timeside.component import * -from timeside.tests import TestCase, TestRunner -import unittest + +from unit_timeside import TestCase, TestRunner import os.path diff --git a/timeside/tests/__init__.py b/tests/unit_timeside.py similarity index 100% rename from timeside/tests/__init__.py rename to tests/unit_timeside.py diff --git a/timeside/__init__.py b/timeside/__init__.py index 0d62329..acb5289 100644 --- a/timeside/__init__.py +++ b/timeside/__init__.py @@ -9,7 +9,6 @@ import timeside.decoder import timeside.encoder import timeside.grapher import timeside.analyzer -import timeside.tests from timeside.core import * __version__ = '0.3.2' diff --git a/timeside/tests/alltests.py b/timeside/tests/alltests.py deleted file mode 100644 index 92f6abb..0000000 --- a/timeside/tests/alltests.py +++ /dev/null @@ -1,8 +0,0 @@ -from timeside.tests.testcomponent import * -from timeside.tests.testinputadapter import * -from timeside.tests.testgraphers import * -from timeside.tests.testdecoding import * -from timeside.tests.testtranscoding import * -from timeside.tests import TestRunner - -unittest.main(testRunner=TestRunner()) -- 2.39.5