From: Thomas Fillon Date: Fri, 29 Nov 2013 10:40:42 +0000 (+0100) Subject: Tests : lowercase for run_test_module X-Git-Tag: 0.5.2~27 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=bef71e31519604a972851f9b6098562f201b4079;p=timeside.git Tests : lowercase for run_test_module --- diff --git a/tests/unit_timeside.py b/tests/unit_timeside.py index f38f6fd..dad1bf4 100644 --- a/tests/unit_timeside.py +++ b/tests/unit_timeside.py @@ -142,7 +142,7 @@ class TestRunner: return result -def runTestModule(test_modules_list=None, test_prefix=None): +def run_test_module(test_modules_list=None, test_prefix=None): suite = unittest.TestSuite() finder = doctest.DocTestFinder(exclude_empty=False) # finder for doctest if test_prefix: diff --git a/timeside/analyzer/preprocessors.py b/timeside/analyzer/preprocessors.py index 3afd6ad..7982a50 100644 --- a/timeside/analyzer/preprocessors.py +++ b/timeside/analyzer/preprocessors.py @@ -181,5 +181,5 @@ def frames_adapter(process_func): if __name__ == "__main__": # Run doctest from __main__ and unittest from test_analyzer_preprocessors from tests import test_analyzer_preprocessors - from tests.unit_timeside import runTestModule - runTestModule('__main__', test_analyzer_preprocessors) + from tests.unit_timeside import run_test_module + run_test_module(test_analyzer_preprocessors) diff --git a/timeside/decoder/core.py b/timeside/decoder/core.py index 1d8d742..9fa1f7e 100644 --- a/timeside/decoder/core.py +++ b/timeside/decoder/core.py @@ -515,9 +515,9 @@ class ArrayDecoder(Processor): if __name__ == "__main__": # Run doctest from __main__ and unittest from tests - from tests.unit_timeside import runTestModule + from tests.unit_timeside import run_test_module # load corresponding tests from tests import test_decoding, test_array_decoding - runTestModule([test_decoding, test_array_decoding]) + run_test_module([test_decoding, test_array_decoding]) diff --git a/timeside/decoder/utils.py b/timeside/decoder/utils.py index 5297b5b..817bd9c 100644 --- a/timeside/decoder/utils.py +++ b/timeside/decoder/utils.py @@ -140,9 +140,9 @@ def get_media_uri_info(uri): if __name__ == "__main__": # Run doctest from __main__ and unittest from tests - from tests.unit_timeside import runTestModule + from tests.unit_timeside import run_test_module # load corresponding tests from tests import test_decoder_utils - runTestModule(test_decoder_utils) + run_test_module(test_decoder_utils) diff --git a/timeside/encoder/core.py b/timeside/encoder/core.py index 6ad0eaa..7b1e0d3 100644 --- a/timeside/encoder/core.py +++ b/timeside/encoder/core.py @@ -145,5 +145,5 @@ class GstEncoder(Processor): if __name__ == "__main__": # Run doctest from __main__ and unittest from test_analyzer_preprocessors from tests import test_encoding, test_transcoding - from tests.unit_timeside import runTestModule - runTestModule([test_encoding, test_transcoding]) \ No newline at end of file + from tests.unit_timeside import run_test_module + run_test_module([test_encoding, test_transcoding]) \ No newline at end of file diff --git a/timeside/encoder/webm.py b/timeside/encoder/webm.py index 238343e..630f9b7 100644 --- a/timeside/encoder/webm.py +++ b/timeside/encoder/webm.py @@ -95,5 +95,5 @@ class WebMEncoder(GstEncoder): if __name__ == "__main__": # Run doctest from __main__ and unittest from test_analyzer_preprocessors from tests import test_encoding, test_transcoding - from tests.unit_timeside import runTestModule - runTestModule([test_encoding, test_transcoding], test_prefix='testWebM') \ No newline at end of file + from tests.unit_timeside import run_test_module + run_test_module([test_encoding, test_transcoding], test_prefix='testWebM') \ No newline at end of file