diff options
author | Michael Hwang <mhwang@research.att.com> | 2017-09-21 12:19:32 -0400 |
---|---|---|
committer | Michael Hwang <mhwang@research.att.com> | 2017-09-21 17:04:39 -0400 |
commit | e11be5dc15e6800ed6111b7773b9e44571343207 (patch) | |
tree | ab5b973d7239b8942ab27c3ee04455533d6a4f23 /python-discovery-client/tests | |
parent | 2200894f54019231bfe1a62845dda03e9bb87bd1 (diff) |
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 <mhwang@research.att.com>
Diffstat (limited to 'python-discovery-client/tests')
-rw-r--r-- | python-discovery-client/tests/test_discovery.py | 6 |
1 files changed, 3 insertions, 3 deletions
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) |