mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add a simple test for ffmpeg
This commit is contained in:
parent
3792654953
commit
346c6ad2ed
@ -308,6 +308,11 @@ class BuildTest(unittest.TestCase):
|
||||
m.close()
|
||||
self.assertEqual(winutil.parse_cmdline('"c:\\test exe.exe" "some arg" 2'), ('c:\\test exe.exe', 'some arg', '2'))
|
||||
|
||||
def test_ffmpeg(self):
|
||||
from calibre_extensions.ffmpeg import resample_raw_audio_16bit
|
||||
data = os.urandom(22050 * 2)
|
||||
resample_raw_audio_16bit(data, 22050, 44100)
|
||||
|
||||
def test_sqlite(self):
|
||||
import sqlite3
|
||||
conn = sqlite3.connect(':memory:')
|
||||
|
Loading…
x
Reference in New Issue
Block a user