Change test to use json loads so that the test will pass consistently

This commit is contained in:
Rebecca Law
2017-09-08 09:56:46 +01:00
parent b02104c046
commit 4f57f2c5a5

View File

@@ -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'
})
}