Files
copilotkit__copilotkit/showcase/shared/python/tests/test_schedule_meeting.py
Jordan Ritter 25ee60e0dd feat: add shared showcase packages with tools, components, and test coverage
- @copilotkit/showcase-shared: React hooks, components, A2UI catalog, SalesDashboard
- Shared Python tools: 7 implementations + 54 pytest tests
- Shared TypeScript tools: equivalents + 43 vitest tests
- React component tests: 68 tests (7 suites)
- Aimock fixtures: 18 deterministic demo scenarios
2026-04-13 17:38:44 -07:00

19 lines
575 B
Python

import pytest
from tools import schedule_meeting_impl
def test_returns_pending_status():
result = schedule_meeting_impl("discuss roadmap")
assert result["status"] == "pending_approval"
def test_includes_reason():
result = schedule_meeting_impl("quarterly review")
assert result["reason"] == "quarterly review"
def test_includes_duration_minutes():
result = schedule_meeting_impl("sync", 45)
assert result["duration_minutes"] == 45
def test_default_duration():
result = schedule_meeting_impl("sync")
assert result["duration_minutes"] == 30