mirror of
https://github.com/iluvcapra/wavinfo.git
synced 2025-12-31 08:50:41 +00:00
Added rf64 tests
This commit is contained in:
25
tests/test_rf64.py
Normal file
25
tests/test_rf64.py
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
# import os.path
|
||||||
|
import gzip
|
||||||
|
from glob import glob
|
||||||
|
# from typing import Dict, Any, cast
|
||||||
|
|
||||||
|
from unittest import TestCase
|
||||||
|
|
||||||
|
# from .utils import all_files, ffprobe
|
||||||
|
|
||||||
|
import wavinfo
|
||||||
|
|
||||||
|
class TestRf64(TestCase):
|
||||||
|
|
||||||
|
def setUp(self) -> None:
|
||||||
|
return super().setUp()
|
||||||
|
|
||||||
|
def test_open(self):
|
||||||
|
|
||||||
|
for path in glob("tests/test_files/rf64/*.wav.gz"):
|
||||||
|
gz = gzip.open(path)
|
||||||
|
wav_info = wavinfo.WavInfoReader(gz)
|
||||||
|
|
||||||
|
self.assertIsNotNone(wav_info)
|
||||||
|
# self.assertIsNotNone(wav_info.bext)
|
||||||
|
|
||||||
Reference in New Issue
Block a user