Skip to content

Commit b41fd9c

Browse files
committed
Updated tests
1 parent 2bd501c commit b41fd9c

4 files changed

Lines changed: 4 additions & 8 deletions

File tree

tests/benchmarks/data_generators.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,5 +155,4 @@ def generate_topic_summary() -> str:
155155
],
156156
]
157157

158-
summary = " ".join([random.choice(yap) for yap in yaps]) + "."
159-
return summary
158+
return " ".join([random.choice(yap) for yap in yaps]) + "."

tests/e2e/utils/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,5 +287,4 @@ def replace_placeholders(context: Context, text: str) -> str:
287287
"""
288288
result = text.replace("{MODEL}", context.default_model)
289289
result = result.replace("{PROVIDER}", context.default_provider)
290-
result = result.replace("{VECTOR_STORE_ID}", context.faiss_vector_store_id)
291-
return result
290+
return result.replace("{VECTOR_STORE_ID}", context.faiss_vector_store_id)

tests/unit/app/endpoints/test_query.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ def create_dummy_request() -> Request:
4242
request (fastapi.Request): A Request constructed with a bare HTTP scope
4343
(type "http") for use in tests.
4444
"""
45-
req = Request(scope={"type": "http", "headers": []})
46-
return req
45+
return Request(scope={"type": "http", "headers": []})
4746

4847

4948
@pytest.fixture(name="setup_configuration")

tests/unit/utils/test_responses.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@ def make_output_item(
9898
Returns:
9999
MockOutputItem: Mock object with type, role, and content attributes
100100
"""
101-
mock_item = MockOutputItem(item_type=item_type, role=role, content=content)
102-
return mock_item
101+
return MockOutputItem(item_type=item_type, role=role, content=content)
103102

104103

105104
def make_content_part(

0 commit comments

Comments
 (0)