Skip to content

Commit

Permalink
Fix warning about unicode in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arikfr committed Jan 17, 2019
1 parent 160b403 commit cf22a1e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/models/test_dashboards.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ def create_tagged_dashboard(self, tags):
return dashboard

def test_all_tags(self):
self.create_tagged_dashboard(tags=['tag1'])
self.create_tagged_dashboard(tags=['tag1', 'tag2'])
self.create_tagged_dashboard(tags=['tag1', 'tag2', 'tag3'])
self.create_tagged_dashboard(tags=[u'tag1'])
self.create_tagged_dashboard(tags=[u'tag1', u'tag2'])
self.create_tagged_dashboard(tags=[u'tag1', u'tag2', u'tag3'])

self.assertEqual(
list(Dashboard.all_tags(self.factory.org, self.factory.user)),
[('tag1', 3), ('tag2', 2), ('tag3', 1)]
[(u'tag1', 3), (u'tag2', 2), (u'tag3', 1)]
)

0 comments on commit cf22a1e

Please sign in to comment.