Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit 48f94aa

Browse files
committed
additional audio test
1 parent 789f55a commit 48f94aa

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/test_base.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
from pprint import pprint
12
import tempfile
23
from os import path
34
import numpy as np
45

5-
from ffmpegio import plugins, utils, audio, video
6+
from ffmpegio import plugins, utils, audio, video, probe
67

78

89
def test_hooks():
@@ -41,10 +42,12 @@ def test_audio():
4142

4243
with tempfile.TemporaryDirectory() as tmpdirname:
4344
wavfile = path.join(tmpdirname, "test.wav")
44-
audio.write(wavfile, fs, x)
45+
audio.write(wavfile, fs, x, show_log=True)
46+
pprint(probe.full_details(wavfile))
4547
fs1, x1 = audio.read(wavfile)
4648

4749
assert fs == fs1
50+
assert x.shape==x1.shape
4851
assert np.array_equal(x, x1)
4952

5053

0 commit comments

Comments
 (0)