File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
239239class 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."
You can’t perform that action at this time.
0 commit comments