"""Behavior tests for the token-free reaction detector.""" import pytest from agent.reactions import VIBE, detect_reaction @pytest.mark.parametrize( "text", [ "good bot", "Good Bot!", "ily", "ilysm", "i love you", "love you", "love u", "luv ya", "thanks", "thank you", "thx", "ty", "tysm", "you're the best <3", "here you go <33", "❤️", "🥰 amazing", "sending 💖", "great job, thank you so much!", ], ) def test_affection_fires_vibe(text): assert detect_reaction(text) == VIBE @pytest.mark.parametrize( "text", [ "", None, "run the tests", "this is great", # positive sentiment, NOT affection — must not fire "awesome work on the refactor", "it's broken