diff options
author | Alex Yang <yangyang1@zte.com.cn> | 2017-08-04 17:23:23 +0800 |
---|---|---|
committer | Alex Yang <yangyang1@zte.com.cn> | 2017-08-04 17:27:26 +0800 |
commit | 4944b1f3a5b796898db956af5f9084e6bd194b61 (patch) | |
tree | 09d48c3441fcfc670a37af262dfabb309be807bc /tests/unit | |
parent | beba74bba91f22c47686286e041f3d21a3016566 (diff) |
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 <yangyang1@zte.com.cn>
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/test_get_conf.py | 3 |
1 files changed, 1 insertions, 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) == {} |