Skip to content

Commit c353979

Browse files
committed
linting fixed in some of the tests
1 parent 78c074e commit c353979

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

libs/genai/tests/integration_tests/test_chat_models.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22

33
import asyncio
44
import json
5-
from typing import Dict, Generator, List, Optional, TypedDict
5+
from typing import Dict, Generator, List, Optional
66

77
import pytest
8-
import typing_extensions
98
from langchain_core.messages import (
109
AIMessage,
1110
AIMessageChunk,
@@ -555,7 +554,8 @@ def test_output_matches_prompt_keys() -> None:
555554
pytest.fail(f"Response is not valid JSON: {e}")
556555

557556
list_key = prompt_key_names["list_key"]
558-
assert list_key in response_data, f"Expected key '{list_key}' is missing in the response."
557+
assert list_key in response_data, \
558+
f"Expected key '{list_key}' is missing in the response."
559559
grocery_items = response_data[list_key]
560560
assert isinstance(grocery_items, list), f"'{list_key}' should be a list."
561561

@@ -600,4 +600,6 @@ def test_validate_response_mime_type_and_schema() -> None:
600600
response_mime_type="application/json",
601601
).validate_environment()
602602
except ValueError as e:
603-
pytest.fail(f"Validation failed unexpectedly with a valid MIME type and no schema: {e}")
603+
pytest.fail(
604+
f"Validation failed unexpectedly with a valid MIME type and no schema: {e}"
605+
)

0 commit comments

Comments
 (0)