import sys
sys.path.insert(0, '/opt/struktur/social-media-agent')
from human_feedback import interpret_human_reason, feedback_prompt_rules
def test_feedback_reason_maps_cable_and_device():
result=interpret_human_reason('Das Kabel kommt aus dem Boden und das Messgerät wirkt wie eine Bohrmaschine.')
assert result['cable_plausibility'] == 'negative'
assert result['device_plausibility'] == 'negative'
def test_feedback_prompt_rules_are_thematically_scoped():
rules=feedback_prompt_rules({'content_pillar':'feuchte_schimmel','topic':'Feuchteprüfung'})
assert isinstance(rules,list)