diff options
author | Frederick Muriuki Muriithi | 2023-05-30 13:15:28 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-05-30 13:15:28 +0300 |
commit | 12cf19bfa9bd65e32253a9f904a256d20364bc90 (patch) | |
tree | 7aaf337ef477ca1cada77508297e3f96303bfe2c | |
parent | da0ed76d5fc6038fc32b60e32aacdb91b77b771b (diff) | |
download | genenetwork2-12cf19bfa9bd65e32253a9f904a256d20364bc90.tar.gz |
Fix test: Sort values to avoid equality problems.
-rw-r--r-- | wqflask/tests/unit/wqflask/test_collect.py | 12 |
1 files changed, 6 insertions, 6 deletions
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'])) |