diff --git a/tests/app/test_jinja_filters.py b/tests/app/test_jinja_filters.py index b184b58e76..e0fd4877fc 100644 --- a/tests/app/test_jinja_filters.py +++ b/tests/app/test_jinja_filters.py @@ -22,8 +22,8 @@ get_formatted_address, get_width_for_number, map_list_collector_config, - map_summary_item_config, map_list_config, + map_summary_item_config, should_wrap_with_fieldset, strip_tags, ) @@ -1339,23 +1339,24 @@ def test_map_list_collector_config_render_icon_set(): assert output == expected + def test_map_list_config(): list_values = [ [ { - 'item_title': 'Harry Potter', - 'primary_person': False, - 'list_item_id': '1', - 'is_complete': True, - 'repeating_blocks': False + "item_title": "Harry Potter", + "primary_person": False, + "list_item_id": "1", + "is_complete": True, + "repeating_blocks": False, }, { - 'item_title': 'Clark Kent', - 'primary_person': False, - 'list_item_id': '2', - 'is_complete': False, - 'repeating_blocks': False - } + "item_title": "Clark Kent", + "primary_person": False, + "list_item_id": "2", + "is_complete": False, + "repeating_blocks": False, + }, ] ] @@ -1364,20 +1365,20 @@ def test_map_list_config(): expected = [ [ { - 'text': 'Harry Potter', - 'iconType': 'check', - 'attributes': { - 'data-qa': 'list-item-1-label', - 'data-list-item-id': '1' - } + "text": "Harry Potter", + "iconType": "check", + "attributes": { + "data-qa": "list-item-1-label", + "data-list-item-id": "1", + }, }, { - 'text': 'Clark Kent', - 'attributes': { - 'data-qa': 'list-item-2-label', - 'data-list-item-id': '2' - } - } + "text": "Clark Kent", + "attributes": { + "data-qa": "list-item-2-label", + "data-list-item-id": "2", + }, + }, ] ]