diff --git a/test/torchcodec/decoders.py b/test/torchcodec/decoders.py deleted file mode 100644 index a1f0433805..0000000000 --- a/test/torchcodec/decoders.py +++ /dev/null @@ -1,17 +0,0 @@ -from types import SimpleNamespace - -import torchaudio_unittest.common_utils.wav_utils as wav_utils - -# See corresponding [TorchCodec test dependency mocking hack] note in -# conftest.py - - -class AudioDecoder: - def __init__(self, uri): - self.uri = uri - data, sample_rate = wav_utils.load_wav(self.uri) - self.metadata = SimpleNamespace(sample_rate=sample_rate) - self.data = data - - def get_all_samples(self): - return SimpleNamespace(data=self.data) diff --git a/test/torchcodec/encoders.py b/test/torchcodec/encoders.py deleted file mode 100644 index d81cc5aa84..0000000000 --- a/test/torchcodec/encoders.py +++ /dev/null @@ -1,15 +0,0 @@ -from types import SimpleNamespace - -import torchaudio_unittest.common_utils.wav_utils as wav_utils - -# See corresponding [TorchCodec test dependency mocking hack] note in -# conftest.py - - -class AudioEncoder: - def __init__(self, data, sample_rate): - self.data = data - self.metadata = SimpleNamespace(sample_rate=sample_rate) - - def to_file(self, uri, bit_rate=None): - return wav_utils.save_wav(uri, self.data, self.metadata.sample_rate)