FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Added pydub · HpcDataLab/docker-python@da45c1a · GitHub

Commit da45c1a

Browse files
committed
Added pydub
added test
1 parent 86968f7 commit da45c1a

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

‎Dockerfile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,7 @@ RUN pip install flashtext && \
438438
pip install papermill && \
439439
pip install cloud-tpu-client && \
440440
pip install tensorflow-datasets && \
441+
pip install pydub && \
441442
/tmp/clean-layer.sh
442443

443444
# Tesseract and some associated utility packages

‎tests/test_pydub.py‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import unittest
2+
3+
from pydub import AudioSegment
4+
5+
6+
class TestPydub(unittest.TestCase):
7+
def test_import(self):
8+
sound = AudioSegment.from_file('/input/tests/data/test.wav')
9+
10+
self.assertEqual(1810, len(sound))
11+

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL