From 4944b1f3a5b796898db956af5f9084e6bd194b61 Mon Sep 17 00:00:00 2001 From: Alex Yang Date: Fri, 4 Aug 2017 17:23:23 +0800 Subject: Ignore oder in unit test of test_get_conf.py Since the result contains a list, so ignore_order should be True in the comparison. Change-Id: Iff4c655312015a55a69b91692ab6f9696715a143 Signed-off-by: Alex Yang --- tests/unit/test_get_conf.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/unit/test_get_conf.py b/tests/unit/test_get_conf.py index 10b040aa..f882d9d2 100644 --- a/tests/unit/test_get_conf.py +++ b/tests/unit/test_get_conf.py @@ -9,7 +9,6 @@ import os import pytest - from deepdiff import DeepDiff from deploy.get_conf import ( @@ -64,4 +63,4 @@ def test_config(deploy_file, network_file): '10.20.11.11', '/dev/sdb', {'controller01': [], 'controller02': [], 'controller03': [], 'computer01': [], 'computer02': []}) - assert DeepDiff(result, expect) == {} + assert DeepDiff(result, expect, ignore_order=True) == {} -- cgit 1.2.3-korg