import pytest from suno_utils.worker.detect_producer_tag import extract_producer_tag_name_from_text @pytest.mark.parametrize( "input_text, expected_output", [ ("Text with CashMoneyAP, which contains an accented char", "cashmoneyap"), ("No tag here", None), ("Astro on the beat", "astro on the beat"), ], ) def test_extract_artist_name_from_text(input_text, expected_output): assert extract_producer_tag_name_from_text(input_text) == expected_output