Skip to content

Commit

Permalink
Merge two table rows
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip Todic committed Sep 6, 2016
1 parent f0a10e1 commit 958cf77
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions unload/tests/test_base.py
Expand Up @@ -467,7 +467,10 @@ def test_list_unutilized_items(self):
from_syntax_without_tags = Template(
template_string=get_contents(self.from_syntax_without_tags),
name=self.from_syntax_without_tags)
self.assertEqual(from_syntax_without_tags.list_unutilized_items(),
([('app_tags', 'example_simple_tag'), (None, 'plus')],
['Unutilized module', 'Unutilized tag/filter']))

table, header = from_syntax_without_tags.list_unutilized_items()
# Merge the two rows due to unpredictable ordering of members
all_rows = table[0] + table[1]
self.assertEqual(header, ['Unutilized module', 'Unutilized tag/filter'])
self.assertIn('app_tags', all_rows)
self.assertIn('example_simple_tag', all_rows)
self.assertIn('plus', all_rows)

0 comments on commit 958cf77

Please sign in to comment.