moto/tests/test_textract/test_textract.py

32 lines
842 B
Python
Raw Normal View History

2022-02-17 19:00:48 +00:00
"""Unit tests for textract-supported APIs."""
import boto3
from moto import mock_textract
# See our Development Tips on writing tests for hints on how to write good tests:
# http://docs.getmoto.org/en/latest/docs/contributing/development_tips/tests.html
# @mock_textract
# def test_get_document_text_detection():
# client = boto3.client("textract", region_name="us-east-1")
# resp = client.get_document_text_detection()
# raise Exception("NotYetImplemented")
@mock_textract
def test_start_document_text_detection():
2022-02-17 19:31:40 +00:00
client = boto3.client("textract", region_name="us-east-1")
2022-02-17 19:00:48 +00:00
resp = client.start_document_text_detection(
DocumentLocation={
'S3Object': {
'Bucket': 'bucket',
'Name': 'name',
}
},
)
raise Exception("NotYetImplemented")