Merge pull request #1236 from alphagov/fix-test_performance_platform_config

Change test to use json loads so that the test will pass consistently
This commit is contained in:
Leo Hemsted
2017-09-08 11:53:51 +01:00
committed by GitHub

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