From 12cf19bfa9bd65e32253a9f904a256d20364bc90 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 30 May 2023 13:15:28 +0300 Subject: Fix test: Sort values to avoid equality problems. --- wqflask/tests/unit/wqflask/test_collect.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'wqflask/tests/unit') diff --git a/wqflask/tests/unit/wqflask/test_collect.py b/wqflask/tests/unit/wqflask/test_collect.py index 585738f9..4e99de7f 100644 --- a/wqflask/tests/unit/wqflask/test_collect.py +++ b/wqflask/tests/unit/wqflask/test_collect.py @@ -48,12 +48,12 @@ class TestCollect(unittest.TestCase): Test that the correct traits are returned when the user is logged out and bytes are used. """ - self.assertEqual(process_traits( + self.assertEqual(sorted(process_traits( b'1452452_at:HC_M2_0606_P:163d04f7db7c9e110de6,' b'1452447_at:HC_M2_0606_P:eeece8fceb67072debea,' b'1451401_a_at:HC_M2_0606_P:a043d23b3b3906d8318e,' - b'1429252_at:HC_M2_0606_P:6fa378b349bc9180e8f5'), - tuple(['1429252_at:HC_M2_0606_P', + b'1429252_at:HC_M2_0606_P:6fa378b349bc9180e8f5')), + sorted(['1429252_at:HC_M2_0606_P', '1451401_a_at:HC_M2_0606_P', '1452447_at:HC_M2_0606_P', '1452452_at:HC_M2_0606_P'])) @@ -64,12 +64,12 @@ class TestCollect(unittest.TestCase): Test that the correct traits are returned when the user is logged out and a normal string is used. """ - self.assertEqual(process_traits( + self.assertEqual(sorted(process_traits( '1452452_at:HC_M2_0606_P:163d04f7db7c9e110de6,' '1452447_at:HC_M2_0606_P:eeece8fceb67072debea,' '1451401_a_at:HC_M2_0606_P:a043d23b3b3906d8318e,' - '1429252_at:HC_M2_0606_P:6fa378b349bc9180e8f5'), - tuple(['1429252_at:HC_M2_0606_P', + '1429252_at:HC_M2_0606_P:6fa378b349bc9180e8f5')), + sorted(['1429252_at:HC_M2_0606_P', '1451401_a_at:HC_M2_0606_P', '1452447_at:HC_M2_0606_P', '1452452_at:HC_M2_0606_P'])) -- cgit v1.2.3