Textract - request parameters are part of the body

This commit is contained in:
Bert Blommers 2022-02-18 18:49:54 -01:00
parent 0776ae1f52
commit 64c16c715d
3 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ class TextractBackend(BaseBackend):
):
if not document_location:
raise InvalidParameterException()
job_id = uuid.uuid4()
job_id = str(uuid.uuid4())
self.async_text_detection_jobs[job_id] = TextractJob({
"Blocks": TextractBackend.BLOCKS,
"DetectDocumentTextModelVersion": "1.0",

View File

@ -27,7 +27,7 @@ class TextractResponse(BaseResponse):
def start_document_text_detection(self):
params = self._get_params()
params = json.loads(self.body)
document_location = params.get("DocumentLocation")
client_request_token = params.get("ClientRequestToken")
job_tag = params.get("JobTag")

View File

@ -28,4 +28,4 @@ def test_start_document_text_detection():
},
)
raise Exception("NotYetImplemented")
resp.should.have.key("JobId")