Skip to content

Commit e5a10f3

Browse files
committed
fix: enable pytest-asyncio for agentic tests in CI
1 parent f114c1e commit e5a10f3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
cd backend
2323
python -m pip install --upgrade pip
2424
pip install -r requirements.txt
25-
pip install pytest httpx
25+
pip install pytest httpx pytest-asyncio
2626
2727
- name: Run Backend Tests
2828
env:

backend/tests/test_intelligence_agent.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import pytest
12
import asyncio
23
import os
34
import os
@@ -9,6 +10,7 @@
910

1011
load_dotenv()
1112

13+
@pytest.mark.asyncio
1214
async def test_agent():
1315
print("START: Starting Intelligence Service...")
1416
service = get_intelligence_service()

0 commit comments

Comments
 (0)