From eb3e0d9f28e86e8812e3216a85d25490e1d6872b Mon Sep 17 00:00:00 2001 From: Andreas Kaiser Date: Wed, 4 Apr 2018 11:51:32 +0200 Subject: [PATCH] Fix sorting issue on mysql. --- kotti/tests/test_tags.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kotti/tests/test_tags.py b/kotti/tests/test_tags.py index 8fcd23a55..e447dae91 100644 --- a/kotti/tests/test_tags.py +++ b/kotti/tests/test_tags.py @@ -222,11 +222,11 @@ def test_get_content_items_for_tag_title(self, root): # part to avoid establishing a specification. # result = content_with_tags(['first tag']) - assert [res.name for res in result] == ['folder_1', 'content_2'] + assert sorted([res.name for res in result]) == sorted(['folder_1', 'content_2']) result = content_with_tags(['second tag']) - assert [res.name for res in result] == ['folder_1'] + assert sorted([res.name for res in result]) == sorted(['folder_1']) result = content_with_tags(['third tag']) - assert [res.name for res in result] == ['content_1', 'content_2'] + assert sorted([res.name for res in result]) == sorted(['content_1', 'content_2']) class TestCommaSeparatedListWidget: