-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_agent.py
More file actions
35 lines (32 loc) · 1.15 KB
/
Copy pathtest_agent.py
File metadata and controls
35 lines (32 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
def test_tools_defined():
"""Test all scheduling tools are defined"""
from app import tools
tool_names = [t["name"] for t in tools]
assert "find_provider" in tool_names
assert "verify_patient_eligibility" in tool_names
assert "book_appointment" in tool_names
assert "process_referral" in tool_names
def test_find_provider():
"""Test find provider returns results"""
from app import execute_tool
result = execute_tool("find_provider", {"specialty": "cardiology"})
assert "DR00" in result
assert "cardiology" in result.lower()
def test_book_appointment():
"""Test booking returns confirmation"""
from app import execute_tool
result = execute_tool("book_appointment", {
"patient_id": "P001",
"provider_id": "DR001",
"appointment_time": "Monday 9am"
})
assert "P001" in result
assert "DR001" in result
def test_verify_eligibility():
"""Test eligibility check returns status"""
from app import execute_tool
result = execute_tool("verify_patient_eligibility", {
"patient_id": "P001",
"provider_id": "DR001"
})
assert "eligible" in result.lower()