Skip to content

Commit

Permalink
refactor: Lint agents-api (CI)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad-mtos authored and github-actions[bot] committed Feb 12, 2025
1 parent 28d485f commit 29cb81d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion agents-api/tests/test_base_evaluate.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import uuid
from unittest.mock import patch

from agents_api.activities.task_steps.base_evaluate import base_evaluate, backwards_compatibility
from agents_api.activities.task_steps.base_evaluate import (
backwards_compatibility,
base_evaluate,
)
from agents_api.autogen.openapi_model import (
Agent,
TaskSpecDef,
Expand Down Expand Up @@ -137,6 +140,7 @@ async def _():
)
assert result == 15


@test("utility: base_evaluate - backwards compatibility")
async def _():
exprs = "[[x + 5]]"
Expand Down Expand Up @@ -171,6 +175,7 @@ async def _():
result = await base_evaluate(exprs, values={"_": [7]})
assert result == 7


@test("utility: backwards_compatibility")
async def _():
# Test $ prefix - should return unchanged
Expand Down

0 comments on commit 29cb81d

Please sign in to comment.