From 30ab3f86c1795a8db48e46302bb3549e9e1ac8eb Mon Sep 17 00:00:00 2001 From: Mitchell Hynes Date: Mon, 21 Feb 2022 14:26:50 -0330 Subject: [PATCH] Fixed test --- tests/test_textract/test_textract.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_textract/test_textract.py b/tests/test_textract/test_textract.py index 96b6bf2ea..3d2c49e45 100644 --- a/tests/test_textract/test_textract.py +++ b/tests/test_textract/test_textract.py @@ -4,8 +4,9 @@ from botocore.exceptions import ClientError, ParamValidationError import pytest import boto3 +from unittest import SkipTest 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: # http://docs.getmoto.org/en/latest/docs/contributing/development_tips/tests.html @@ -13,6 +14,9 @@ from moto import mock_textract @mock_textract 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.PAGES = randint(5, 500) TextractBackend.BLOCKS = [