Stop posting job metadata to the API

The API is looking at the S3 metadata for this information now, so
there’s no need for us to continue sending it through.
This commit is contained in:
Chris Hill-Scott
2018-04-30 12:07:36 +01:00
parent 6ea4cf7c07
commit 98214884d3
5 changed files with 8 additions and 33 deletions

View File

@@ -1660,15 +1660,12 @@ def mock_check_verify_code_code_expired(mocker):
@pytest.fixture(scope='function')
def mock_create_job(mocker, api_user_active):
def _create(job_id, service_id, template_id, file_name, notification_count, scheduled_for=None):
def _create(job_id, service_id, scheduled_for=None):
return job_json(
service_id,
api_user_active,
job_id=job_id,
template_id=template_id,
bucket_name='service-{}-notify'.format(job_id),
original_file_name='{}.csv'.format(job_id),
notification_count=notification_count)
)
return mocker.patch('app.job_api_client.create_job', side_effect=_create)