def test_error_notifications_when_it_is_present_and_enabled(): s = SettingsData(1, { "settings": [{ "name": "errors", "enabled": True, }], }) assert s.error_notifications()
def test_error_notifications_when_settings_are_missing(): s = SettingsData(1, {}) assert s.error_notifications()
def test_error_notifications_when_it_is_missing(): s = SettingsData(1, { "settings": [], }) assert s.error_notifications()