Init the perf platform client, add logs and refactor payload methods

This commit is contained in:
Imdad Ahad
2017-01-30 18:24:06 +00:00
parent 1650fb0807
commit c811f1b6c6
3 changed files with 20 additions and 6 deletions

View File

@@ -17,7 +17,7 @@ def client(mocker):
client = PerformancePlatformClient()
current_app = mocker.Mock(config={
'PERFORMANCE_PLATFORM_ENABLED': True,
'PERFORMANCE_PLATFORM_URL': 'performance-platform-url',
'PERFORMANCE_PLATFORM_URL': 'https://performance-platform-url/',
'PERFORMANCE_PLATFORM_TOKEN': 'token'
})
client.init_app(current_app)