"""Audio CLI reports and exit codes, including unknown and failed verification.""" from __future__ import annotations import json import shutil import wave import numpy as np import pytest from click.testing import CliRunner from remove_ai_watermarks.cli import main pytestmark = pytest.mark.skipif(not shutil.which("ffmpeg") or not shutil.which("ffprobe"), reason="ffmpeg required") def _source(tmp_path): path = tmp_path / "source.wav" with wave.open(str(path), "wb") as stream: stream.setnchannels(1) stream.setsampwidth(2) stream.setframerate(16000) stream.writeframes(np.zeros(16000, dtype="