def test_dao_get_all_letter_branding(notify_db_session): hm_gov = create_letter_branding() test_branding = create_letter_branding( name='test branding', filename='test-branding', ) results = dao_get_all_letter_branding() assert hm_gov in results assert test_branding in results assert len(results) == 2
def get_all_letter_brands(): letter_brands = dao_get_all_letter_branding() return jsonify([lb.serialize() for lb in letter_brands])
def test_dao_get_all_letter_branding_returns_empty_list_if_no_brands_exist( notify_db): assert dao_get_all_letter_branding() == []