import pyaudio import pytest from common.microphone_utils import MicrophoneUtils @pytest.fixture def pyaudio_instance(): audio = pyaudio.PyAudio() try: audio.get_default_input_device_info() return audio except IOError: pytest.skip("No microphone available to test with.") class TestAudioIntegration(MicrophoneUtils): """Run shared audio behavior tests with the mock implementation.""" pass