Skip to content

Commit 25a46b2

Browse files
committed
fix: clear cache in test
1 parent 2b014b2 commit 25a46b2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/provider_engine/test_dynamic_model_loader.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ def parse_model_metadata(raw: dict) -> list[ProviderAIModel]:
2424
def _clear_dynamic_model_cache():
2525
"""Isolate tests: module-level model cache must not leak between cases."""
2626
_dml._CACHE.clear()
27+
_dml._LAST_LOAD_ERROR.clear()
2728
yield
2829
_dml._CACHE.clear()
30+
_dml._LAST_LOAD_ERROR.clear()
2931

3032

3133
def _models_by_id(raw: dict) -> dict[str, ProviderAIModel]:

0 commit comments

Comments
 (0)