Skip to content

Commit 5c9abcd

Browse files
abrookinsCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot <[email protected]>
1 parent 72a6cbc commit 5c9abcd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration/test_langcache_semantic_cache_integration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,15 +232,15 @@ async def test_async_delete_variants(
232232
hits_after_clear = await langcache_with_attrs.acheck(
233233
prompt=prompt, num_results=5
234234
)
235-
assert not hits_after_clear
235+
assert not any(hit["response"] == response for hit in hits_after_clear)
236236

237237

238238
@pytest.mark.requires_api_keys
239239
class TestLangCacheSemanticCacheIntegrationWithoutAttributes:
240240
def test_error_on_store_with_metadata_when_no_attributes_configured(
241241
self, langcache_no_attrs: LangCacheSemanticCache
242242
) -> None:
243-
from langcache.errors import BadRequestErrorResponseContent
243+
244244

245245
prompt = "Attributes not configured"
246246
response = "This should fail due to missing attributes configuration."

0 commit comments

Comments
 (0)