Textract - request parameters are part of the body
This commit is contained in:
parent
0776ae1f52
commit
64c16c715d
@ -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",
|
||||
|
@ -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")
|
||||
|
@ -28,4 +28,4 @@ def test_start_document_text_detection():
|
||||
},
|
||||
)
|
||||
|
||||
raise Exception("NotYetImplemented")
|
||||
resp.should.have.key("JobId")
|
||||
|
Loading…
Reference in New Issue
Block a user