def test_get_email_branding_options_gets_all_email_branding(notify_db, notify_db_session): email_branding_1 = create_email_branding(name='test_email_branding_1') email_branding_2 = create_email_branding(name='test_email_branding_2') email_branding = dao_get_email_branding_options() assert len(email_branding) == 2 assert email_branding_1 == email_branding[0] assert email_branding_2 == email_branding[1]
def get_email_branding_options(): email_branding_options = [ o.serialize() for o in dao_get_email_branding_options() ] return jsonify(email_branding=email_branding_options)