mirror of
https://github.com/hwchase17/langchain
synced 2024-11-08 07:10:35 +00:00
Unset Cache in Tests (#7362)
This is impacting other unit tests that use callbacks since the cache is still set (just empty)
This commit is contained in:
parent
3ce4e46c8c
commit
4e180dc54e
@ -47,6 +47,7 @@ def set_cache_and_teardown(request: FixtureRequest) -> Generator[None, None, Non
|
|||||||
# Will be run after each test
|
# Will be run after each test
|
||||||
if langchain.llm_cache:
|
if langchain.llm_cache:
|
||||||
langchain.llm_cache.clear()
|
langchain.llm_cache.clear()
|
||||||
|
langchain.llm_cache = None
|
||||||
else:
|
else:
|
||||||
raise ValueError("Cache not set. This should never happen.")
|
raise ValueError("Cache not set. This should never happen.")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user