cache multiple rsp in one test fn, switch cache to global use

This commit is contained in:
yzlin 2024-01-04 15:28:46 +08:00
parent 1cdd4344d3
commit 5c545febc3
3 changed files with 140 additions and 76 deletions

View file

@ -0,0 +1,8 @@
import pytest
@pytest.fixture(autouse=True)
def llm_mock(rsp_cache, mocker, request):
# An empty fixture to overwrite the global llm_mock fixture
# because in provider folder, we want to test the aask and aask functions for the specific models
pass