Fixed test
This commit is contained in:
parent
7dc5adb5d5
commit
30ab3f86c1
@ -4,8 +4,9 @@ from botocore.exceptions import ClientError, ParamValidationError
|
|||||||
import pytest
|
import pytest
|
||||||
import boto3
|
import boto3
|
||||||
|
|
||||||
|
from unittest import SkipTest
|
||||||
from moto.textract.models import TextractBackend
|
from moto.textract.models import TextractBackend
|
||||||
from moto import mock_textract
|
from moto import settings, mock_textract
|
||||||
|
|
||||||
# See our Development Tips on writing tests for hints on how to write good tests:
|
# 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
|
# http://docs.getmoto.org/en/latest/docs/contributing/development_tips/tests.html
|
||||||
@ -13,6 +14,9 @@ from moto import mock_textract
|
|||||||
|
|
||||||
@mock_textract
|
@mock_textract
|
||||||
def test_get_document_text_detection():
|
def test_get_document_text_detection():
|
||||||
|
if settings.TEST_SERVER_MODE:
|
||||||
|
raise SkipTest("Cannot set textract backend values in server mode")
|
||||||
|
|
||||||
TextractBackend.JOB_STATUS = "SUCCEEDED"
|
TextractBackend.JOB_STATUS = "SUCCEEDED"
|
||||||
TextractBackend.PAGES = randint(5, 500)
|
TextractBackend.PAGES = randint(5, 500)
|
||||||
TextractBackend.BLOCKS = [
|
TextractBackend.BLOCKS = [
|
||||||
|
Loading…
Reference in New Issue
Block a user