Skip to content

Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!

Python

quality: Rename deprecated var in pytest

Clémence Lesnéaedf8314cef7
diff --git a/tests/cache.py b/tests/cache.py
index 41e82ec..cf2a805 100644
--- a/tests/cache.py
+++ b/tests/cache.py
@@ -18,7 +18,7 @@ from app.helpers.config_models.cache import ModeEnum as CacheModeEnum
),
],
)
[email protected](scope="session")
[email protected](loop_scope="session")
@pytest.mark.repeat(10) # Catch multi-threading and concurrency issues
async def test_acid(random_text: str, cache_mode: CacheModeEnum) -> None:
"""
diff --git a/tests/llm.py b/tests/llm.py
index c225573..5c9923a 100644
--- a/tests/llm.py
+++ b/tests/llm.py
@@ -236,7 +236,7 @@ class ClaimRelevancyMetric(BaseMetric):
@with_conversations
[email protected](scope="session")
[email protected](loop_scope="session")
async def test_llm( # noqa: PLR0913
call: CallStateModel,
claim_tests_excl: list[str],
diff --git a/tests/search.py b/tests/search.py
index 1a39d96..57867d2 100644
--- a/tests/search.py
+++ b/tests/search.py
@@ -118,7 +118,7 @@ class RagRelevancyMetric(BaseMetric):
@with_conversations
[email protected](scope="session")
[email protected](loop_scope="session")
@pytest.mark.repeat(10) # Catch multi-threading and concurrency issues
async def test_relevancy( # noqa: PLR0913
call: CallStateModel,
diff --git a/tests/store.py b/tests/store.py
index d69aa16..db99191 100644
--- a/tests/store.py
+++ b/tests/store.py
@@ -6,7 +6,7 @@ from app.helpers.config import CONFIG
from app.models.call import CallStateModel
[email protected](scope="session")
[email protected](loop_scope="session")
@pytest.mark.repeat(10) # Catch multi-threading and concurrency issues
async def test_acid(call: CallStateModel) -> None:
"""