]> git.parisson.com Git - timeside.git/commitdiff
Tests : lowercase for run_test_module
authorThomas Fillon <thomas@parisson.com>
Fri, 29 Nov 2013 10:40:42 +0000 (11:40 +0100)
committerThomas Fillon <thomas@parisson.com>
Fri, 29 Nov 2013 10:40:42 +0000 (11:40 +0100)
tests/unit_timeside.py
timeside/analyzer/preprocessors.py
timeside/decoder/core.py
timeside/decoder/utils.py
timeside/encoder/core.py
timeside/encoder/webm.py

index f38f6fd888357e28d3254465576d1e0a4d3cf65e..dad1bf4ebfc669b2d6d04501b9606aedb2f34b0c 100644 (file)
@@ -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:
index 3afd6adb0e542282713c5ce71d4b4ea5663d343b..7982a5053df68070653fcfa3fc771872972d0f29 100644 (file)
@@ -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)
index 1d8d74260d5766352ad0c91551ce9d91c7f2620f..9fa1f7e2c06321a3c9424d821241c7492bf08c6f 100644 (file)
@@ -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])
 
index 5297b5b5a0b25ed0e69c368e4f6e5d1298c4b40b..817bd9cc6f17c79331bdbdc4464e93f0251d0acc 100644 (file)
@@ -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)
 
index 6ad0eaaeec26d73d254a4e21563c5a9bd6236675..7b1e0d341ee737fdb690038145379ca144216109 100644 (file)
@@ -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
index 238343e31ef76ffa962ab2d9352c6ea62d818f6f..630f9b7852614fc8ae15efe497069da522c91226 100644 (file)
@@ -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