From e11be5dc15e6800ed6111b7773b9e44571343207 Mon Sep 17 00:00:00 2001 From: Michael Hwang Date: Thu, 21 Sep 2017 12:19:32 -0400 Subject: Fix tox to give more accurate coverage reports * Also attempted to get sonar working * Fixed minor things along the way Change-Id: I434c0d791140e75cd5997be0cc3fefce7ccc292f Issue-Id: DCAEGEN2-60 Signed-off-by: Michael Hwang --- python-discovery-client/tests/test_discovery.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python-discovery-client/tests') diff --git a/python-discovery-client/tests/test_discovery.py b/python-discovery-client/tests/test_discovery.py index 00f1b5e..36817af 100644 --- a/python-discovery-client/tests/test_discovery.py +++ b/python-discovery-client/tests/test_discovery.py @@ -17,7 +17,7 @@ # # ECOMP is a trademark and service mark of AT&T Intellectual Property. -import json, logging +import six, json, logging # http://stackoverflow.com/questions/9623114/check-if-two-unordered-lists-are-equal from collections import Counter from functools import partial @@ -65,8 +65,8 @@ def test_get_connection_types(): assert Counter(expected) == Counter(actual) # Force strings to be unicode, test for Python2 compatibility - config = { "x": "say something".decode("utf-8"), "y": 123, - "z": "{{some-analytics}}".decode("utf-8") } + config = { "x": six.u("say something"), "y": 123, + "z": six.u("{{some-analytics}}") } expected = [(("z", ), "some-analytics"), ] actual = dis._get_connection_types(config) assert Counter(expected) == Counter(actual) -- cgit 1.2.3-korg