Skip to content

Commit

Permalink
run format
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccar committed Sep 17, 2024
1 parent 88e3008 commit 0fe6760
Showing 1 changed file with 25 additions and 24 deletions.
49 changes: 25 additions & 24 deletions tests/app/test_jinja_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down Expand Up @@ -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,
},
]
]

Expand All @@ -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",
},
},
]
]

Expand Down

0 comments on commit 0fe6760

Please sign in to comment.