import pytest
from notifications import notify_status_change, EMAIL_TEMPLATES

def test_notify_status_change_en():
    result = notify_status_change("test@example.com", 123, "shipped", "John", "en")
    assert result is True

def test_notify_status_change_fallback():
    # Test fallback to 'en' for unknown language
    result = notify_status_change("test@example.com", 123, "shipped", "John", "fr")
    assert result is True

def test_notify_status_change_ua():
    result = notify_status_change("test@example.com", 456, "processing", "Ivan", "ua")
    assert result is True

def test_email_templates_completeness():
    for lang in ["en", "ru", "me", "ua"]:
        assert lang in EMAIL_TEMPLATES
        assert "status_change_subject" in EMAIL_TEMPLATES[lang]
        assert "status_change_body" in EMAIL_TEMPLATES[lang]
