From 1f166a47e950a0d26f3e7e8c23a92ae061f38d44 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Wed, 13 Nov 2019 16:42:58 -0800 Subject: [PATCH] Fix failing test due to dictionary order (or the lack thereof..) in Python 3.5. --- tests/unit/hooks/test_dump.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/unit/hooks/test_dump.py b/tests/unit/hooks/test_dump.py index 1d52c44..93d54e6 100644 --- a/tests/unit/hooks/test_dump.py +++ b/tests/unit/hooks/test_dump.py @@ -28,9 +28,11 @@ def test_make_database_dump_filename_with_invalid_name_raises(): def test_flatten_dump_patterns_produces_list_of_all_patterns(): dump_patterns = {'postgresql_databases': ['*/glob', 'glob/*'], 'mysql_databases': ['*/*/*']} - expected_patterns = dump_patterns['postgresql_databases'] + dump_patterns['mysql_databases'] + expected_patterns = sorted( + dump_patterns['postgresql_databases'] + dump_patterns['mysql_databases'] + ) - assert module.flatten_dump_patterns(dump_patterns, ('bob',)) == expected_patterns + assert sorted(module.flatten_dump_patterns(dump_patterns, ('bob',))) == expected_patterns def test_flatten_dump_patterns_with_no_patterns_errors():