Files
pipecat/tests/test_resampy_resampler.py
Mark Backman 8c3521f2e4 chore(audio): deprecate ResampyResampler in favor of SOXR resamplers
Emits a DeprecationWarning on instantiation. ResampyResampler will be
removed in Pipecat 2.0 along with the default resampy and numba
dependencies.
2026-05-06 09:40:13 -04:00

18 lines
473 B
Python

#
# Copyright (c) 2024-2026, Daily
#
# SPDX-License-Identifier: BSD 2-Clause License
#
"""Tests for the deprecated resampy resampler."""
import pytest
from pipecat.audio.resamplers.resampy_resampler import ResampyResampler
def test_resampy_resampler_emits_deprecation_warning():
"""Test that instantiating ResampyResampler emits a DeprecationWarning."""
with pytest.warns(DeprecationWarning, match="ResampyResampler is deprecated"):
ResampyResampler()