Mercurial > hg > auditok
diff tests/test_core.py @ 210:74864841228a
Fix _get_audio_parameters
author | Amine Sehili <amine.sehili@gmail.com> |
---|---|
date | Mon, 17 Jun 2019 21:03:58 +0100 |
parents | 12e6837c5961 |
children | ed6b3cecb407 |
line wrap: on
line diff
--- a/tests/test_core.py Fri Jun 14 22:43:21 2019 +0100 +++ b/tests/test_core.py Mon Jun 17 21:03:58 2019 +0100 @@ -4,6 +4,11 @@ from tempfile import TemporaryDirectory from genty import genty, genty_dataset from auditok import split, AudioRegion, AudioParameterError +from auditok.io import ( + _normalize_use_channel, + _extract_selected_channel, + get_audio_source, +) def _make_random_length_regions( @@ -115,9 +120,8 @@ **kwargs ) regions = list(regions) - print(regions) err_msg = "Wrong number of regions after split, expected: " - err_msg += "{}, found: {}".format(len(regions), len(expected)) + err_msg += "{}, found: {}".format(len(expected), len(regions)) self.assertEqual(len(regions), len(expected), err_msg) sample_width = 2