def fixture_one_attachment_many_files_document(): response = document_packager.package_document(ATTACHMENT_MANY_FILES_JSON, CLIENT_ID, JOB_ID) return response
def fixture_one_attachment_document(): response = document_packager.package_document(ONE_ATTACHMENT_JSON, CLIENT_ID, JOB_ID) return response
def fixture_document(): response = document_packager.package_document(TEST_JSON, CLIENT_ID, JOB_ID) return response
def fixture_many_downloads_document(): response = document_packager.package_document(MANY_FILE_FORMAT_JSON, CLIENT_ID, JOB_ID) return response
def find_document_data(manager, job, job_id): print("Getting document from regulations.gov...\n") data = download_document(manager.api_key, job['document_id']) LOGGER.info("Job#%s: Packaging document...", str(job_id)) results = package_document(data, manager.client_id, job_id) return results