From 4f57f2c5a54dec0d906a5cd326d835a4c1a92141 Mon Sep 17 00:00:00 2001 From: Rebecca Law Date: Fri, 8 Sep 2017 09:56:46 +0100 Subject: [PATCH] Change test to use json loads so that the test will pass consistently --- tests/app/test_cloudfoundry_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/app/test_cloudfoundry_config.py b/tests/app/test_cloudfoundry_config.py index 72b2f2865..8f90df90d 100644 --- a/tests/app/test_cloudfoundry_config.py +++ b/tests/app/test_cloudfoundry_config.py @@ -213,7 +213,7 @@ def test_sms_inbound_config(): def test_performance_platform_config(): extract_cloudfoundry_config() - assert os.environ['PERFORMANCE_PLATFORM_ENDPOINTS'] == json.dumps({ + assert json.loads(os.environ['PERFORMANCE_PLATFORM_ENDPOINTS']) == { 'foo': 'my_token', 'bar': 'other_token' - }) + }