Skip to content

Commit 8c6f2eb

Browse files
author
Bob Strahan
committed
fix lint errors
1 parent fc66539 commit 8c6f2eb

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

lib/idp_common_pkg/idp_common/classification/service.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import time
1717
from concurrent.futures import ThreadPoolExecutor, as_completed
1818
from datetime import datetime, timedelta, timezone
19-
from decimal import Decimal
2019
from typing import Any, Dict, List, Optional, Set, Union
2120

2221
import boto3

lib/idp_common_pkg/tests/unit/classification/test_classification_service.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,7 @@ def test_classify_page_bedrock_model_error(
274274

275275
# Call the method and expect exception to be raised
276276
with pytest.raises(Exception, match="Model error"):
277-
service.classify_page_bedrock(
278-
page_id="1", text_uri="s3://bucket/text.txt"
279-
)
277+
service.classify_page_bedrock(page_id="1", text_uri="s3://bucket/text.txt")
280278

281279
@patch("boto3.client")
282280
def test_classify_page_sagemaker_success(self, mock_boto_client, mock_config):

lib/idp_common_pkg/tests/unit/extraction/test_extraction_service.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -331,13 +331,7 @@ def test_process_document_section_missing_page(
331331
mock_invoke_model.return_value = {
332332
"response": {
333333
"output": {
334-
"message": {
335-
"content": [
336-
{
337-
"text": '{"invoice_number": "INV-123"}'
338-
}
339-
]
340-
}
334+
"message": {"content": [{"text": '{"invoice_number": "INV-123"}'}]}
341335
}
342336
},
343337
"metering": {"input_tokens": 100, "output_tokens": 50},

0 commit comments

Comments
 (0)