Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ classifiers = [
]

dependencies = [
"crewai[anthropic]==1.10.1",
"crewai-tools>=1.8.1,<2.0.0",
"crewai[anthropic]>=1.14.4,<2.0.0",
"crewai-tools>=1.14.0,<2.0.0",
"pydantic>=2.0.0",
"pydantic-settings>=2.0.0",
"httpx>=0.27.0",
Expand Down
14 changes: 12 additions & 2 deletions tests/unit/test_audience_plan_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,19 @@ def test_cardinality_cap_exceeded(self):


def _run_validate(flow: ProposalHandlingFlow):
"""Run the validate_audience coroutine directly."""
"""Run the validate_audience coroutine directly.

asyncio.get_event_loop().run_until_complete(flow.validate_audience())
Uses a fresh event loop per call (instead of the deprecated
``asyncio.get_event_loop().run_until_complete(...)`` pattern) so the
helper remains compatible with pytest-asyncio >= 1.4, which no longer
creates an implicit loop for sync test bodies.
"""

loop = asyncio.new_event_loop()
try:
loop.run_until_complete(flow.validate_audience())
finally:
loop.close()


def _build_flow(packages: dict | None = None) -> ProposalHandlingFlow:
Expand Down
Loading